0.5.0 • Published 2 years ago

@aigens/aigens-sdk-apple-sign-in v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

aigens-sdk-apple-sign-in

Aigens SDK Apple Sign IN

Install

npm install aigens-sdk-apple-sign-in
npx cap sync

API

getCanShowButton()

getCanShowButton() => Promise<{ result: boolean; }>

Returns: Promise<{ result: boolean; }>


login()

login() => Promise<AppleSignInResult>

Returns: Promise<AppleSignInResult>


checkStateWithUserIdentifier(...)

checkStateWithUserIdentifier(options: { userId: string; }) => Promise<AppleUserState>
ParamType
options{ userId: string; }

Returns: Promise<AppleUserState>


Interfaces

AppleSignInResult

state : 1 , successs state : -1 , fail

PropType
statenumber
errCodenumber
errDescstring
infoAppleUserInfo

AppleUserInfo

PropType
statestring
userIdentifierstring
emailstring
identityTokenstring
authCodestring
realUserStatusstring
familyNamestring
givenNamestring
nicknamestring
middleNamestring
namePrefixstring
nameSuffixstring
familyName_phonestring
givenName_phonestring
nickname_phonestring
namePrefix_phonestring
nameSuffix_phonestring
middleName_phonestring

AppleUserState

state : 1 , Apple ID Credential is valid state : -1 , Apple ID Credential revoked, handle unlink state : -2 , Credential not found, show login UI state : -3 , Unknow

PropType
statenumber
messagestring
0.5.0

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago