11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
export const WECHAT_AUTH_ADAPTER = Symbol('WECHAT_AUTH_ADAPTER');
|
|
|
|
export interface WechatIdentityResult {
|
|
openid: string;
|
|
unionid?: string;
|
|
}
|
|
|
|
export interface WechatAuthAdapter {
|
|
exchangeCode(code: string): Promise<WechatIdentityResult>;
|
|
}
|