@hapic/oauth2
Version:
A oauth2 api client based on axios.
13 lines (12 loc) • 582 B
TypeScript
import type { ResponseType } from './constants';
export type JwtPayload = {
[key: string]: any;
iss?: string | undefined;
sub?: string | undefined;
aud?: string | string[] | undefined;
exp?: number | undefined;
nbf?: number | undefined;
iat?: number | undefined;
jti?: string | undefined;
};
export type ResponseTypeCombinations = `${ResponseType.CODE} ${ResponseType.TOKEN}` | `${ResponseType.CODE} ${ResponseType.ID_TOKEN}` | `${ResponseType.ID_TOKEN} ${ResponseType.TOKEN}` | `${ResponseType.CODE} ${ResponseType.ID_TOKEN} ${ResponseType.TOKEN}`;