mirror of
https://github.com/Telecominfraproject/wlan-cloud-ui.git
synced 2025-11-01 19:27:51 +00:00
added User Context
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
export function parseJwt(token) {
|
||||
const base64Url = token.split('.')[1];
|
||||
const base64 = base64Url.replace('-', '+').replace('_', '/');
|
||||
return JSON.parse(window.atob(base64));
|
||||
const base64Url = token.split('.')[0];
|
||||
return JSON.parse(window.atob(base64Url));
|
||||
}
|
||||
|
||||
export function isTokenExpired(token) {
|
||||
|
||||
Reference in New Issue
Block a user