Netlify Identity with Google auth: subset of users experience 500 error when posting JWT in auth header

Hi everyone, I’m using Netlify Identity to authenticate my site with Google as an auth provider.

My users authenticate through Google using the react-netlify-identity library. Once they’ve logged in they’ll receive a JWT provided in the callback. My Netlify Function then makes a GET request to https://[my-site-url]/.netlify/identity/user with the JWT as a Bearer token in the authorisation headers.

I’m doing it this way in order to extract information I need about the user from the token.

This works fine for most of my users, but a small subset of them experience a 500 error that reads ‘Internal Error. ID: 01JMG5W2PZE0K5XG9CAP182SE5’. Can you provide any details for what might be going wrong here? I saw in another post @hrishikesh had mentioned there might need to be a change at Netlify’s end.

Thanks for your help,

David

We’ve followed up on this request in our helpdesk, feel free to ask any additional questions in that thread. Thanks!