Techofficer / node-apple-signin

Node.JS wrapper around Sign In with Apple REST API
MIT License
53 stars 40 forks source link

redirectUri should be optional on getAuthorizationToken #6

Open guisehn opened 4 years ago

guisehn commented 4 years ago

The getAuthorizationToken function expects a redirectUri. If it's not supplied, it throws an error with the message redirectUri is empty.

While passing the redirectUri is required when doing sign in through the web, it doesn't exist when the authentication happens natively through an iOS app. For this reason, this field should be optional.