This commit is contained in:
2026-05-24 09:27:01 +02:00
parent e946436a42
commit 14156a23fb
9 changed files with 154 additions and 150 deletions
+9
View File
@@ -38,4 +38,13 @@ export class KeycloakService {
isLoggedIn(): boolean {
return this.keycloak.authenticated ?? false;
}
async getToken(): Promise<string | undefined> {
try {
await this.keycloak.updateToken(30);
return this.keycloak.token;
} catch {
return undefined;
}
}
}