I’m using auth0.js(v7.6.1) to enable users to login with email&password for my web app.
When I login with email and password with the following code, blank page pops up and turns off, then login succeeds.
How to turn off this popup? What I want to do is redirect mode without any popup.
By default, login should be redirect mode as the doc describes.
auth0.login({
connection: "Username-Password-Authentication",
email: input.email,
username: input.email,
password: input.password,
scope: "openid offline_access" // popup:false didn't work
}, (err: Auth0Error | any, authResult: Auth0DecodedHash | any) => {
.....
On the other hand, when I use auth0.loginWithUsernamePassword
, I don’t see any popup. App just just redirected to next page. This is what I want to do. The reason I don’t use loginWithUsernamPassword is that I cannot get refresh token because I cannot set any scope of ‘offline_access’. In my case, refresh token is needed to enable users to login automatically when token is expired for convenience.
Would be truly appreciated if you give me any help.
Environment:
Angular4.0.0
Ionic 3.0.1
auth0-js 7.6.1
Thanks,