new AppleSignInStrategy(options, verify)
Strategy constructor.
This authentication strategy authenticates and authorizes requests by using the new "Sign in with Apple" service. It uses the OAuth 2.0 protocol.
Applications must supply a verify callback which accepts an accessToken,
refreshToken and service-specific profile, and then calls the done
callback supplying a user, which should be set to false if the
credentials are not valid. If an exception occured, err should be set.
Options:
clientIDyour Apple client idclientSecretyour Apple client secretcallbackURLURL to which Apple will redirect the user after granting authorizationscope[Optional] An array of named scopes
Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The options for the strategy. Properties
|
|||||||||||||||
verify |
function |
The function to verify the user against a database in. |
- Source: