|
@@ -27,7 +27,7 @@ export const decodeJWT = <T = any>(token: string, isGuest: boolean = true): T |
|
|
|
const decodedToken = decodeURIComponent(token);
|
|
const decodedToken = decodeURIComponent(token);
|
|
|
const parts = decodedToken.split(".");
|
|
const parts = decodedToken.split(".");
|
|
|
|
|
|
|
|
- if (parts.length !== 3) {
|
|
|
|
|
|
|
+ if (parts.length !== 2) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
|
|
|