You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import jwt_decode, {JwtPayload} from 'jwt-decode';
|
|
|
|
interface Jwt extends JwtPayload {
|
|
ac?: string;
|
|
}
|
|
|
|
export const parseRuntimeToken = (token: string): Jwt => {
|
|
return jwt_decode<Jwt>(token);
|
|
};
|