Missing code verifier #1529
Replies: 1 comment 1 reply
-
I'm experiencing a similar issue - did you already find a solution for your problem? I use an OAuth2 scheme with pixie. Having local storage disabled and using only state and cookie storage seems to somehow break the authorization flow. The nuxt config set up: auth: {
redirect: {
callback: "/authenticated",
home: false,
logout: false
},
rewriteRedirects: false,
fullPathRedirect: false,
strategies: {
customStrategy: {
endpoints: {
authorization: `https://example.com/connect/authorize`,
token: `https://example.com/connect/token`,
userInfo: `https://example.com/connect/userinfo`,
},
token: {
property: "access_token",
type: "Bearer",
},
refreshToken: {
property: "refresh_token",
},
responseType: "code",
grantType: "authorization_code",
redirectUri: 'http://localhost:3000/authenticated',
clientId: "MyClient",
scope: [
"openid",
"offline_access",
],
codeChallengeMethod: "S256"
}
},
cookie: {
options: {
expires: 2
}
},
localStorage: false
} Setting I'm currently using version |
Beta Was this translation helpful? Give feedback.
-
I'm trying to log in through Google and retrieve a user from our own user service but I'm getting an error:
During the sign in process I can see a
code_verifier
value in my local storage:nuxt config set up:
https://github.com/nuxt-community/auth-module/blob/dev/src/schemes/oauth2.ts line #395
Do I have to configure the
codeVerifier
property in my Nuxt Config? Or is it possible that the api call in the back end needs to send the code verifier to google as well?Beta Was this translation helpful? Give feedback.
All reactions