-
Notifications
You must be signed in to change notification settings - Fork 239
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
FR: Get IDTokens from test users #180
Comments
+1. Really need this feature! |
Create a custom token and exchange it for an ID token via the REST API. See how we do it in our integration tests: https://github.com/firebase/firebase-admin-go/blob/master/integration/auth/auth_test.go#L199 Or you can just mint a fake ID token yourself: https://github.com/firebase/firebase-admin-go/blob/master/auth/auth_test.go#L428 |
@hiranya911 Is it by design that the |
Yes, that's not an operation we expect developers to use in typical flows. It's only use is for testing as far as I can tell (we use it in our own integration tests). |
@hiranya911 That makes sense, though having the method implemented would enable a couple scenarios:
If you're not absolutely against it, I'm happy to open a PR. |
@bojeil-google what do you think? |
|
That makes sense. As an alternative to introducing it to the |
Is there any way to get ID tokens from test users without having to use the c++ sdk or the node client? Just curious for testing purposes. Mocking an auth flow would be super nice
The text was updated successfully, but these errors were encountered: