Closed ervan23 closed 2 years ago
Hey, are you sure that the refresh token is right or has not expired?
@Intevel Yeah sure, but I already fix it. my API using Authorization
header without Bearer
. But by default auth-next
is set with Bearer
. I fix it by just add the token type to ""
(empty string).
My new google auth config was look like:
{
google: {
responseType: "code",
clientId:"<google client ID>",
codeChallengeMethod: "",
grantType: "authorization_code",
redirectUri: `${baseUrl}/verify-auth`,
token: {
property: "data.token",
required: true,
type: "",
maxAge: 18000,
}
}
}
Version
"@nuxtjs/auth-next": "5.0.0-1607693598.34d83ea" "nuxt": "^2.15.2"
Nuxt configuration
mode:
Nuxt configuration
Reproduction
Steps to reproduce
After selecting a google account, then redirected to /verify-auth, then the error occurred. After /verify-auth it should go in.