@clerk/backend
Version:
Clerk Backend SDK - REST Client for Backend API & JWT verification utilities
20 lines • 910 B
TypeScript
import type { M2MTokenJSON } from './JSON';
/**
* The Backend `M2MToken` object holds information about a machine-to-machine token.
*/
export declare class M2MToken {
readonly id: string;
readonly subject: string;
readonly scopes: string[];
readonly claims: Record<string, any> | null;
readonly revoked: boolean;
readonly revocationReason: string | null;
readonly expired: boolean;
readonly expiration: number | null;
readonly createdAt: number;
readonly updatedAt: number;
readonly token?: string | undefined;
constructor(id: string, subject: string, scopes: string[], claims: Record<string, any> | null, revoked: boolean, revocationReason: string | null, expired: boolean, expiration: number | null, createdAt: number, updatedAt: number, token?: string | undefined);
static fromJSON(data: M2MTokenJSON): M2MToken;
}
//# sourceMappingURL=M2MToken.d.ts.map