Skip to content

Latest commit

 

History

History
132 lines (69 loc) · 3.2 KB

File metadata and controls

132 lines (69 loc) · 3.2 KB

@invertase/react-native-apple-authentication


Variable: appleAuth

const appleAuth: object

Defined in: index.d.ts:413

Type Declaration

Error

Error: typeof AppleError

Errors that can occur during authorization.

Url

https://developer.apple.com/documentation/authenticationservices/asauthorizationerror/code

isSignUpButtonSupported

isSignUpButtonSupported: boolean

A boolean value of whether the 'SignUp' Type variant of the Apple Authentication Button is supported.

This will always return false for Android, and false for iOS devices running iOS versions less than 13.2

isSupported

isSupported: boolean

A boolean value of whether Apple Authentication is supported on this device & platform version.

This will always return false for Android, and false for iOS devices running iOS versions less than 13.

Operation

Operation: typeof AppleRequestOperation

Operation to be executed by the request.

Request option used as part of AppleRequestOptions requestedOperation

Scope

Scope: typeof AppleRequestScope

The contact information to be requested from the user. Only scopes for which this app was authorized for will be returned.

Scopes used as part of AppleRequestOptions requestedScopes

State

State: typeof AppleCredentialState

The current Apple Authorization state.

UserStatus

UserStatus: typeof AppleRealUserStatus

Possible values for the real user indicator.

Url

https://developer.apple.com/documentation/authenticationservices/asuserdetectionstatus

getCredentialStateForUser()

getCredentialStateForUser(user): Promise<AppleCredentialState>

Get the current @{AppleCredentialState} for the provided user identifier.

Parameters

user

string

An opaque user ID associated with the AppleID used for the sign in.

Returns

Promise<AppleCredentialState>

onCredentialRevoked()

onCredentialRevoked(listener): () => void | undefined

Subscribe to credential revoked events. Call getCredentialStateForUser on event received to confirm the current credential state for your user identifier.

Parameters

listener

Function

Returns a function that when called will unsubscribe from future events.

Returns

(): void | undefined

Returns

void | undefined

performRequest()

performRequest(options?): Promise<AppleRequestResponse>

Perform a request to Apple Authentication services with the provided request options.

Parameters

options?

AppleRequestOptions

AppleRequestOptions

Returns

Promise<AppleRequestResponse>