validateJwtSvid: (
token: any,
audience: any,
options?: any,
) => Promise<
| {
claims?: undefined;
errorCode: string;
ok: boolean;
reason: string;
spiffeId?: undefined;
trustDomain?: undefined;
}
| {
claims: any;
errorCode?: undefined;
ok: boolean;
reason?: undefined;
spiffeId: any;
trustDomain: string;
},
> = ...
Type Declaration
-
- (
token: any,
audience: any,
options?: any,
): Promise<
| {
claims?: undefined;
errorCode: string;
ok: boolean;
reason: string;
spiffeId?: undefined;
trustDomain?: undefined;
}
| {
claims: any;
errorCode?: undefined;
ok: boolean;
reason?: undefined;
spiffeId: any;
trustDomain: string;
},
>
-
Parameters
- token: any
- audience: any
Optionaloptions: any
Returns Promise<
| {
claims?: undefined;
errorCode: string;
ok: boolean;
reason: string;
spiffeId?: undefined;
trustDomain?: undefined;
}
| {
claims: any;
errorCode?: undefined;
ok: boolean;
reason?: undefined;
spiffeId: any;
trustDomain: string;
},
>
{ ok: true, spiffeId, claims, trustDomain }, or { ok: false, reason, errorCode }
Validates a JWT-SVID: signed by a key of the trust domain its
subnames, unexpired, and for the audience given.