Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete Server Side Auth Flow is missing implementation #56

Closed
dkbast opened this issue Oct 29, 2024 · 1 comment
Closed

Complete Server Side Auth Flow is missing implementation #56

dkbast opened this issue Oct 29, 2024 · 1 comment

Comments

@dkbast
Copy link

dkbast commented Oct 29, 2024

Hi - this library is great :) - I'm currently trying to build a dart web app with server side authentication using session cookies.

For this I need to
a) call verifyIdToken
https://github.com/firebase/firebase-admin-node/blob/8d49b7e67e6867cfe6371d5a76aeadad0743c086/src/auth/base-auth.ts#L212

and
b) cteare a cookie using createSessionCookie
https://github.com/firebase/firebase-admin-node/blob/8d49b7e67e6867cfe6371d5a76aeadad0743c086/src/auth/base-auth.ts#L681

What would be necessary to implement this? Can you point me to the corresponding files/ docs? I'm happy to contribute, but don't really get a grasp of whats going on here.

@rbellens
Copy link
Collaborator

rbellens commented Jan 1, 2025

Hi @dkbast,

This package is for client side only. I believe what you need is the firebase_admin package. See for example: https://pub.dev/documentation/firebase_admin/latest/firebase_admin/Auth/verifyIdToken.html

@rbellens rbellens closed this as completed Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants