UNPKG

@xmobitea/gn-server

Version:

GearN Server by XmobiTea (Pro)

20 lines (19 loc) 585 B
import { GameCenterAuth, IGameCenterService } from "./IGameCenterService"; export declare class GameCenterService implements IGameCenterService { private publicKeyCache; private bundleId; constructor(); init(request: { bundleId: string; }): void; verifyToken(auth: GameCenterAuth): Promise<{ [k: string]: any; }>; private concatSignatureAndVerify; private toBigEndian; private getCertificate; private validatePublicKeyUrl; private getPublicKeyFromCache; private convertX509CertToPEM; private downloadPublicKey; }