///
interface IAppOption {
globalData: {
userInfo: any,
isLoggedIn: boolean,
openid?: string,
session_key?: string
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
initAuth: () => Promise,
checkLocationPermission: () => Promise,
doGlobalLogin: () => Promise,
doGlobalLogout: () => void
}