Identical Grant Configs, one works the other doesn't
See original GitHub issueI cloned my old server and updated keys to point to a new google app. But for whatever reason I am getting the session is undefined or grant is misconfigured. I stepped through grant and the session did exist & was actually persisted to the session store.
I am now 100% uncertain what to do, since grants config is identical to the other one, the server is also identical. The only thing that changed were the keys for google. The old app still works fine, so google didn’t change anything on their end. Am I missing some setup with a google provider ? I dont know. This google guide thing is useless, half of what it asks you to do doesnt exit !
The problem seems to be that provider in request/callback is empty on after I click on the user . I am not sure what the causes its non existance. On the other app it exists.
app.use(
grant.express({
defaults: {
origin: SERVER_URL,
transport: 'session',
prefix: '/oauth',
state: true,
},
google: {
key: googleKey,
secret: googleSecret,
scope: ['openid', 'profile', 'email'],
nonce: true,
custom_params: { access_type: 'offline', prompt: 'select_account' },
callback: '/auth_redirect/google',
//redirect_uri: 'http://localhost:5050/auth_redirect/google',
},
})
);
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Incognito mode has worked, so something is up with the cookies! I should’ve thought of that sooner, my bad.
Thank you so much for your time, have a wonderful rest of a weekend ^~^
Thanks, but I’m looking at a few other issues as well. Another thing you can try is to cleanup your browser cookies and cache, even easier you can use another browser or incognito mode. There is a chance that you are still using your old session, the one you used to login with app A, that is now preventing you from logging into app B.