Hi guys,
Unexpectedly starting this evening, I’m getting errors while performing the lock.checkSession() call, returning the error:
{error: "login_required", error_description: "Login required"}
I’m using the lock.js library to implement the renew token flow, I’ve my function:
public renewToken(): Observable<boolean> {
let response: Subject<boolean> = new Subject();
if (!this.lock) {
this.lock = new lock.Auth0Lock(this.clientId,
this.domain,
this.lockOptions);
}
this.lock.checkSession({}, (err, result) => {
if (err) {
console.warn("Error during token refresh", err);
response.next(false);
} else {
this.setSession(result);
response.next(true);
}
});
return response.asObservable();
}
where this.lockOptions has the following values:
{
"allowedConnections": [
"connection-local"
],
"theme": {
"logo": "/assets/img/logo-black-small.png",
"primaryColor": "#3f48cc"
},
"rememberLastLogin": false,
"allowSignUp": false,
"allowForgotPassword": true,
"languageDictionary": {
"forgotPasswordAction": "Do you need to reset your password?",
"title": ""
},
"auth": {
"redirectUrl": "http://localhost:4200/callback",
"responseType": "token id_token",
"audience": "frontend_api",
"params": {
"scope": "openid profile"
}
}
}
the version I’m using are the following:
"auth0-js": "9.8.2",
"auth0-lock": "11.12.0"
I’m trying to figure out what’s the problem, I’m not using social or sso logins, plain database connection. I’m looking at the deployed rules and Auth0 logs and all seems fine.
I’ve checked if there was any problem with the browser configuration (maybe because of a new update), but even this doesn’t seem the case (both firefox and chrome are not working).
The application is deployed on different environment and uses different auth0 tenants and until yesterday was working fine, what might be causing this issue ? might it be some error on the auth0 apis ?
is anyone facing the same error ?
Any help is very appreciated, thank you