UNPKG

593 BTypeScriptView Raw
1/**
2 * @hidden
3 */
4export declare class TokenUtils {
5 /**
6 * decode a JWT
7 *
8 * @param jwtToken
9 */
10 static decodeJwt(jwtToken: string): object;
11 /**
12 * Evaluates whether token cache item expiration is within expiration offset range
13 * @param tokenCacheItem
14 */
15 static validateExpirationIsWithinOffset(expiration: number, tokenRenewalOffsetSeconds: number): Boolean;
16 /**
17 * Extract IdToken by decoding the RAWIdToken
18 *
19 * @param encodedIdToken
20 */
21 static extractIdToken(encodedIdToken: string): object;
22}