You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Firebase Google Group
Hi there,
I have a web app for which I am utilizing Firebase auth to allow users to login using multiple IDPs (Google, Yahoo, Microsoft). I am using the Firebase Admin SDK for Go to validate the JWT (idToken) returned by Firebase and subsequently set a session cookie with the token as per: Manage Session Cookies | Firebase Authentication (google.com)
So far, I have been able to successfully client.VerifyIDToken() on the idToken returned by Firebase:
However, in the code above, the call to client.SessionCookie() returns the following error: error while making http call: Post "https://identitytoolkit.googleapis.com/v1/projects/myproject:createSessionCookie": oauth2: cannot fetch token: 400 Bad Request Response: {"error":"invalid_scope","error_description":"Invalid OAuth scope or ID token audience provided."}
Note that I am using a json-formatted byte buffer instead of a 'service-account-file.json' file to initialize the Firebase App object. I am unsure if that is related, but I would appreciate any help regarding this issue.