mirror of
https://github.com/docker/build-push-action
synced 2024-11-23 02:31:41 +00:00
10 lines
200 B
TypeScript
10 lines
200 B
TypeScript
|
import jwt_decode, {JwtPayload} from 'jwt-decode';
|
||
|
|
||
|
interface Jwt extends JwtPayload {
|
||
|
ac?: string;
|
||
|
}
|
||
|
|
||
|
export const parseRuntimeToken = (token: string): Jwt => {
|
||
|
return jwt_decode<Jwt>(token);
|
||
|
};
|