You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
550 B
17 lines
550 B
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
|