Properties
addListener
addListener: ((listener) => void)
Type declaration
-
- (listener): void
-
Returns void
generateSSOLoginWebURL
generateSSOLoginWebURL: ((schemaUrl) => Promise<NEResult<string>>)
Type declaration
-
- (schemaUrl): Promise<NEResult<string>>
-
Returns Promise<NEResult<string>>
loginByDynamicToken
loginByDynamicToken: ((userUuid, token, authType) => Promise<NEResult<void>>)
Type declaration
-
- (userUuid, token, authType): Promise<NEResult<void>>
-
Parameters
-
userUuid: string
-
token: string
-
authType: string
Returns Promise<NEResult<void>>
loginByEmail
loginByEmail: ((email,
password) => Promise<NEResult<NEAccountInfo>>)
Type declaration
-
- (email, password): Promise<NEResult<NEAccountInfo>>
-
Parameters
-
email: string
-
password: string
Returns Promise<NEResult<NEAccountInfo>>
loginByPassword
loginByPassword: ((userUuid,
password) => Promise<NEResult<NEAccountInfo>>)
Type declaration
-
- (userUuid, password): Promise<NEResult<NEAccountInfo>>
-
Parameters
-
userUuid: string
-
password: string
Returns Promise<NEResult<NEAccountInfo>>
loginByPhoneNumber
loginByPhoneNumber: ((phoneNumber,
password) => Promise<NEResult<NEAccountInfo>>)
Type declaration
-
- (phoneNumber, password): Promise<NEResult<NEAccountInfo>>
-
Parameters
-
phoneNumber: string
-
password: string
Returns Promise<NEResult<NEAccountInfo>>
loginBySmsCode
loginBySmsCode: ((phoneNumber,
smsCode) => Promise<NEResult<NEAccountInfo>>)
Type declaration
-
- (phoneNumber, smsCode): Promise<NEResult<NEAccountInfo>>
-
Parameters
-
phoneNumber: string
-
smsCode: string
Returns Promise<NEResult<NEAccountInfo>>
loginByToken
loginByToken: ((userUuid,
token) => Promise<NEResult<NEAccountInfo>>)
Type declaration
-
- (userUuid, token): Promise<NEResult<NEAccountInfo>>
-
Parameters
-
userUuid: string
-
token: string
Returns Promise<NEResult<NEAccountInfo>>
logout
logout: (() => Promise<NEResult<void>>)
Type declaration
-
- (): Promise<NEResult<void>>
-
Returns Promise<NEResult<void>>
removeListener
removeListener: ((listener) => void)
Type declaration
-
- (listener): void
-
Returns void
requestSmsCodeForGuest
requestSmsCodeForGuest: ((phoneNumber) => Promise<NEResult<void>>)
Type declaration
-
- (phoneNumber): Promise<NEResult<void>>
-
Returns Promise<NEResult<void>>
requestSmsCodeForLogin
requestSmsCodeForLogin: ((phoneNumber) => Promise<NEResult<void>>)
Type declaration
-
- (phoneNumber): Promise<NEResult<void>>
-
Returns Promise<NEResult<void>>
resetPassword
resetPassword: ((userUuid, newPassword, oldPassword) => Promise<NEResult<void>>)
Type declaration
-
- (userUuid, newPassword, oldPassword): Promise<NEResult<void>>
-
Parameters
-
userUuid: string
-
newPassword: string
-
oldPassword: string
Returns Promise<NEResult<void>>
updateAvatar
updateAvatar: ((image) => Promise<NEResult<void>>)
Type declaration
-
- (image): Promise<NEResult<void>>
-
Returns Promise<NEResult<void>>
updateNickname
updateNickname: ((nickname) => Promise<NEResult<void>>)
Type declaration
-
- (nickname): Promise<NEResult<void>>
-
Returns Promise<NEResult<void>>
注册登录状态监听器