n4auth/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts

17 lines
550 B
TypeScript
Raw Permalink Normal View History

2021-07-15 20:10:20 +00:00
import { TokenClaims } from "./TokenClaims";
import { ICrypto } from "../crypto/ICrypto";
/**
* JWT Token representation class. Parses token string and generates claims object.
*/
export declare class AuthToken {
rawToken: string;
claims: TokenClaims;
constructor(rawToken: string, crypto: ICrypto);
/**
* Extract token by decoding the rawToken
*
* @param encodedToken
*/
static extractTokenClaims(encodedToken: string, crypto: ICrypto): TokenClaims;
}
//# sourceMappingURL=AuthToken.d.ts.map