Invalid user context sent to function

Hi I’m attempting to build a service making use of identity and functions. Sometimes the token sent to the function doesn’t appear to be valid, the context is missing a user context (context.clientContext.user).

I am using react-netlify-identity to help with Identity integration. I assume the token is expired and the AuthedFetch isn’t correctly updating the token it sends over.

Does anyone else have experience with this?

Hi @AmarSibia, I’ve not used that package specifically but have you tried using the netlify-identity-widget directly? Also, react-netlify-identity is no longer maintained.

That said, do you have an example site where you can reproduce the issue? Perhaps that can give us a clue what the issue might be.