Error while login with Google provider. User is null
#1502
Replies: 10 comments 2 replies
-
@mscalessio I'm using the same version of @ nuxtjs / auth-next but it worked for me. My config
My package.json
|
Beta Was this translation helpful? Give feedback.
-
Same here. |
Beta Was this translation helpful? Give feedback.
-
I'm getting the same issue, my user object is empty and |
Beta Was this translation helpful? Give feedback.
-
@jonalxh @JoseJuan81 The same happened to me until I tried @GuasaPlay 's solution. What if you try what I mentioned here Completely removing from the url code_challenge_method and nounce parameters |
Beta Was this translation helpful? Give feedback.
-
I'm having same issue, even I tested with Discord provider. |
Beta Was this translation helpful? Give feedback.
-
@mscalessio I had the same issue, I think the problem occurs if you have
After the fix it was obvious why it was happening :) |
Beta Was this translation helpful? Give feedback.
-
Hi @mscalessio , facing the same issue, have you found the way how to fix it? |
Beta Was this translation helpful? Give feedback.
-
Yes facing the same issue ..Can anyone fix it |
Beta Was this translation helpful? Give feedback.
-
Is this bug already fixed? Getting the same result. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Version
module: "5.0.0-1617968180.f699074"
nuxt: "^2.15.3"
Nuxt configuration
mode:
Nuxt configuration
Reproduction
What is expected?
user
object in the nuxt store filled with the user information fetched from google endpoint andloggedIn: true
!What is actually happening?
user
object in nuxt store isnull
,loggedIn: false
but in cookie and in localstorage keyauth.google.state
is filled with the one from google callbackSteps to reproduce
Simply try to login with
this.$auth.loginWith('google')
Additional information
Checklist
What is actually happening?
The callback url from google after selecting my account is something like that:
but the store remain in this state

Someone have the same issue?
Thank you in advice.
Beta Was this translation helpful? Give feedback.
All reactions