Hey guys, I'm implementing third party authenticat...
# javascript
f
Hey guys, I'm implementing third party authentication in react. After following the documentation, I'm presented with a null user object and a null session object. After a little bit of digging, I understand that this is the intended behaviour, but how would I go about authenticating my user without a user object? Any help is highly appreciated.
s
You don't authenticate with a user object - you authenticate in order to get a user object. When you call
signIn()
, if the user details are correct, the server will then return a response which includes a user and their session details.
d
I'm facing this same issue. So if we get an access token and refresh token but the user object is null, what are the next steps if we want to fetch user details (email, etc.)?