evandro_vvOriginal post
Web Developer
I'm having trouble retrieving the ProviderAccessToken no matter which provider I use it always returns an empty string.
auth.get.ts
Plain text
OAuthProvider.Google, '${url}/auth/${OAuthProvider.Google}/callback', '${url}/register', ["profile", "email"] );
return sendRedirect(event, redirectUrl);```> callback.get.ts
`const session = await account.createSession(userId, secret);`
Can anyone shed a light on this please?Summary
Developers are experiencing issues retrieving the ProviderAccessToken in the session object after successful OAuth2 login. The access token always comes back as an empty string regardless of the provider used. One possible solution is to check the configurations for obtaining the access token in the specified endpoints.