mirror of
https://gitea.com/docker/build-push-action.git
synced 2024-11-22 17:39:38 +01:00
f9ccca010f
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
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);
|
|
};
|