Added logout functionality with CIAM
This commit is contained in:
@@ -81,5 +81,9 @@ export class AuthenticationService {
|
||||
logout(): void {
|
||||
localStorage.removeItem('id_token');
|
||||
localStorage.removeItem('expires_at');
|
||||
|
||||
if (environment.environment !== 'local') {
|
||||
document.location.href = environment.logoutUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user