fix(frontend): linting probleem
This commit is contained in:
parent
868c5d9afe
commit
97b07ff2e5
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ async function loadUser(): Promise<User | null> {
|
||||||
// If the user is not in the local storage, he could still be authenticated in Keycloak.
|
// If the user is not in the local storage, he could still be authenticated in Keycloak.
|
||||||
try {
|
try {
|
||||||
user = await userManager.signinSilent();
|
user = await userManager.signinSilent();
|
||||||
} catch (e: unknown) {
|
} catch (_: unknown) {
|
||||||
// When the user was previously logged in and then logged out, signinSilent throws an error.
|
// When the user was previously logged in and then logged out, signinSilent throws an error.
|
||||||
// In that case, the user is not authenticated anymore, so we set him to null.
|
// In that case, the user is not authenticated anymore, so we set him to null.
|
||||||
user = null;
|
user = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue