@boostercloud/application-tester
Version:
Contains Booster types related to the information extracted from the user project
16 lines (15 loc) • 458 B
TypeScript
type TokenOptions = {
expiresIn?: number;
notBefore?: number;
customClaims?: Record<string, any>;
};
/**
* This helper will create a valid token using a real private key for testing
* The keyset file is expecgted to be located in "<package root>/keys/private.key file"
*/
export declare class TokenHelper {
private privateKey;
constructor();
forUser(email: string, role?: string, tokenOptions?: TokenOptions): string;
}
export {};