Add disconnection and minor improvements on login page.

This commit is contained in:
Florian THIERRY committed 2024-03-27 12:15:41 +01:00
1 parent 13c2cc8118
commit 0900df463a
14 files changed
+193 -76

No files matched your search

@@ -55,7 +55,8 @@ export class AuthenticationService {
const tokenParts = token?.split('.');
if (tokenParts?.length === 3 && tokenParts[1].length) {
const userDetails: UserDetails = JSON.parse(tokenParts[1]);
const decodedTokenPart = atob(tokenParts[1]);
const userDetails: UserDetails = JSON.parse(decodedTokenPart);
result = userDetails;
}