I have integrated auth0
into my Vue.js
application for handling logins.
Within my AuthService
, I manage all the auth0
operations. In the constructor
, I instantiate a new auth0
object
and set the default redirectUrl
to the desired location:
import auth0 from 'auth0-js';
class AuthService {
constructor() {
this.auth0 = new auth0.WebAuth({
domain: process.env.AUTH0_DOMAIN,
clientID: process.env.AUTH0_CLIENTID,
audience: process.env.AUTH0_AUDIENCE,
responseType: process.env.AUTH0_RESPONSE_TYPE,
scope: process.env.AUTH0_SCOPE,
redirectUrl: 'http://localhost:8080/examplepage'
});
}
Although the login functionality is working, the redirection is not happening as expected. Instead of being redirected to 'http://localhost:8080/examplepage' after a successful login, the user remains on 'http://localhost:8080'. What could be causing this issue?