@cloudbase/node-sdk
Version:
tencent cloud base server sdk for node.js
14 lines (13 loc) • 385 B
TypeScript
import { CloudBase } from '../cloudbase';
export declare function auth(cloudbase: CloudBase): {
getUserInfo(): {
openId: string;
appId: string;
uid: string;
customUserId: string;
isAnonymous: boolean;
};
getAuthContext(context: any): Promise<any>;
getClientIP(): string;
createTicket: (uid: any, options?: any) => string;
};