Hi,
I have been trying to use auth0-js to solve a few of my sign-up and login flow requirements. I was trying to do login using the below code snippet which authenticates and redirect back with access_token in response redirect URL but, I’m not sure about 2 things here.
- Why I’m not receiving the ID_Token as part of the response URL?
- Who has to manage the session? Should I manage it on my own or Auth0 will set the session?
My login code snippet for ref:
export const auth = new auth0.WebAuth({
clientID: AUTH0_CLIENT_ID,
domain: AUTH0_DOMAIN,
scope: “openid email profile”
})
auth.login({
username: user.email,
password: user.password,
realm: “‘Username-Password-Authentication’”,
redirectUri: AUTH0_LOGIN_REDIRECT_URI,
responseType: “token”,
nonce: “1234567”,
state: “1234567”
}
Sample redirect response: https://localhost:3000/authenticate#access_token=“{some_token}”&scope=openid%20profile%20email&expires_in=7200&token_type=Bearer&state=1234567
Thanks,
Vivek P N