createClientSecret(options: { expirationDuration?: undefined | number }): string
Parameters
options: { expirationDuration?: undefined | number }
Optional expirationDuration?: undefined | number
The expiration duration for registered claim key in seconds.
The value of which must not be greater than 15777000 (6 months in seconds) from the Current Unix Time on the
server.
A String value used to associate a client session with an ID token. This value is also used to mitigate replay attacks.
redirectUri: string
The destination URI the code was originally sent to.
Optional scope?: undefined | ("name" | "email")[]
The amount of user information requested from Apple.
You can request the user’s "name" or "email". You can also choose to request both, or neither.
Ommiting the property or providing any empty won't request any scopes.
example
['email']
example
['name', 'email']
Optional state?: undefined | string
A unique and non-guessable value that helps prevent CSRF attacks. Usually a UUID string.
The expiration duration for registered claim key in seconds. The value of which must not be greater than 15777000 (6 months in seconds) from the Current Unix Time on the server.
https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048
15777000