mirror of
https://github.com/docker/build-push-action.git
synced 2025-02-18 22:53:03 -05:00
9 lines
200 B
TypeScript
9 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);
|
|
};
|