You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple graphql netlify function and I would like to integrate react-netlify-identity. Is there a built in method I can use? Or some other way around?
The text was updated successfully, but these errors were encountered:
If your Apollo Client is pointing to your .netlify/functions GraphQL URI. You can include the logged in user's JWT in the Authorization header of your request (or perhaps when the ApolloClient is instantiated). You can access the user in your React code with this library through the useIdentityContext hook.
If a Netlify function is called with a valid identity JWT you should be able to access the user information from the context parameter of your Netlify functions.
exportfunction(event,context,callback){const{ identity, user }=context.clientContext;}
I have a simple graphql netlify function and I would like to integrate
react-netlify-identity
. Is there a built in method I can use? Or some other way around?The text was updated successfully, but these errors were encountered: