UNPKG

passkit-webservice-toolkit

Version:

Integrate Apple Wallet Service with ease

19 lines 585 B
/** * Utility to extract the Autorization token by the * header, while performing minimum validation. * * @throws if scheme is invalid * @throws if the token is empty * @param authorizationString * @returns */ export declare function getAuthorizationToken(authorizationString: string): string; /** * Utility to verify the scheme sent by Apple. * It should always be "ApplePass", but... you never know! * * @param authorizationString * @returns */ export declare function isAuthorizationSchemeValid(authorizationString: string): boolean; //# sourceMappingURL=auth.d.ts.map