export interface WeixinLoginResponse { /** 微信小程序下,用户的 open_id */ open_id: string; /** 微信小程序所在的微信开放平台账号下,用户的 union_id */ union_id: string; /** * Gamer 为这个微信小程序用户签发的 Weixin Token。长期有效 * * 对 Weixin Token 的详细描述请阅读 [世游用户运营 - JWT 场景与规范](https://365.kdocs.cn/l/cbxbzWc6zSgY) */ weixin_token: string; } export declare const isWeixinSignResponse: (data: unknown) => data is { nonce_str: string; timestamp: number; signature: string; }; /** * 微信web登录错误码 * * https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html */ export declare const enum WeixinWebLoginErrorCode { /** redirect_uri域名与后台配置不一致 */ RedirectUriDisMatch = "10003", /** 不支持微信开放平台的 Appid,请使用公众号Appid */ AppidError = "10016", /** 公众号未授权第三方平台,请检查授权状态 */ AuthorizationError = "10015", /** 此公众号并没有这些 scope 的权限 */ NoRightForScope = "10005", /** 操作太频繁了,请稍后重试 */ Frequently = "10009", /** 此公众号被封禁 */ AppBanded = "10004", /** 必须关注此测试号 */ ShouldFollow = "10006", /** scope不能为空 */ ScopeNull = "10010", /** redirect_uri不能为空 */ RedirectUriNull = "10011", /** appid不能为空 */ AppidNull = "10012", /** state不能为空 */ StateNull = "10013" }