@clerk/backend
Version:
Clerk Backend SDK - REST Client for Backend API & JWT verification utilities
23 lines • 1.1 kB
TypeScript
import type { JwtPayload } from '@clerk/types';
import type { IdPOAuthAccessTokenJSON } from './JSON';
export declare class IdPOAuthAccessToken {
readonly id: string;
readonly clientId: string;
readonly type: string;
readonly subject: string;
readonly scopes: string[];
readonly revoked: boolean;
readonly revocationReason: string | null;
readonly expired: boolean;
readonly expiration: number | null;
readonly createdAt: number;
readonly updatedAt: number;
constructor(id: string, clientId: string, type: string, subject: string, scopes: string[], revoked: boolean, revocationReason: string | null, expired: boolean, expiration: number | null, createdAt: number, updatedAt: number);
static fromJSON(data: IdPOAuthAccessTokenJSON): IdPOAuthAccessToken;
/**
* Creates an IdPOAuthAccessToken from a JWT payload.
* Maps standard JWT claims and OAuth-specific fields to token properties.
*/
static fromJwtPayload(payload: JwtPayload, clockSkewInMs?: number): IdPOAuthAccessToken;
}
//# sourceMappingURL=IdPOAuthAccessToken.d.ts.map