press-next
Version:
Vue3 组件库,支持 Composition API
26 lines (20 loc) • 465 B
text/typescript
export interface Options {
env: string;
gameID: number;
appID: string;
webID: string;
// cookie 设置的 domain
cookieDomain: string;
// 用 cookie 换取登录态的 api 接口
checkLoginAPI: (userInfo: UserInfo) => Promise<any>;
// 登录弹窗的选择器
// 默认为 #infinite-pass-component
loginDomSelector?: string;
}
export interface UserInfo {
openid: string;
token: string;
channel_info?: {
channelId: number;
}
}