Help needed on how to implement auth with Hasura + React + Firebase after following Hasura article #9284
Unanswered
vaibhavverma9
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've spending the last few days reading this article trying to implement authorization and authentication with Hasura + React + Firebase, but I keep running into the following issue:
[Error: cannot start as connection_init failed with: claims key: 'https://hasura.io/jwt/claims' not found
This is particularly strange because my Firebase function has https://hasura.io/jwt/claims as a key.
I even tried implementing an alternative implementation written here: https://medium.com/swlh/hasura-authentication-with-firebase-ee5543d57772
Same error.
This is my Firebase cloud function:
And after signing in via Firebase, this is my React frontend trying to authenticate / authorize the user:
A valid token with status 200 is retrieved from my cloud function. It is passed into the function FirebaseAuthenticatedApp, but when setting the client, the error
[Error: cannot start as connection_init failed with: claims key: 'https://hasura.io/jwt/claims' not found
appears. Any clue on how to resolve this error?Beta Was this translation helpful? Give feedback.
All reactions