-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JWT Token #30
Comments
var strategy = new Auth0Strategy({
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENT_ID,
clientSecret: process.env.AUTH0_CLIENT_SECRET,
callbackURL: "/auth0callback"
},
function (accessToken, refreshToken, extraParams, profile, done) {
console.log(extraParams.id_token);
return done(null, profile);
}); Output: undefiend |
@asharifi the |
@mikemimik thanks for reply. So what should I change/add to my library to be able to get that in the function?? |
@asharifi in your application, I'm making the assumption that you have the user login on some route var lock = new Auth0Lock('{{clientID}}', '{{domain}}', {
auth: {
responseType: 'code',
redirectUrl: '{{callbackUrl}}'
}
});
lock.show();
|
Having the same issue, docs are not accurate |
Had to pass passport.authenticate('auth0', { scope: 'openid', failureRedirect: '/' }), |
Looks like the docs are indeed incomplete? |
In readme it's said that
but I can't figure it out. I need to take the JWT token of the user with profile but I can't figure out how to do it. Any help will be appreciated
The text was updated successfully, but these errors were encountered: