verify-apple-id-token
Version:
Verify the Apple id token on the server side.
22 lines (21 loc) • 577 B
TypeScript
import { JWKSMock } from "mock-jwks";
export declare const EXPIRY_DATE = "2021-01-01";
interface TokenParams {
iss: string;
aud: string;
iat?: Date;
exp?: Date;
sub: string;
cHash?: string;
email: string;
authTime?: Date;
nonce?: string;
}
export declare const getJwksMock: (iss: string, path?: string) => {
start: () => void;
stop: () => void;
kid: () => string;
token: (token?: import("jsonwebtoken").JwtPayload) => string;
};
export declare const getToken: (params: TokenParams, jwksMock?: JWKSMock) => string;
export {};