Skip to content

Commit

Permalink
Merge pull request #4 from Danil27/fixDoc
Browse files Browse the repository at this point in the history
fix doc
  • Loading branch information
abouroubi authored Jun 29, 2021
2 parents 81148d2 + d38d7b2 commit 0e3f4e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ supplying a `parsedToken` (with all its information in visible form) and the

```js
passport.use(new AppleTokenStrategy({
clientID: 'apple_client_id', // Specify the CLIENT_ID of the app that accesses the backend
clientId: 'apple_client_id', // Specify the CLIENT_ID of the app that accesses the backend
// Or, if multiple clients access the backend: [CLIENT_ID_1, CLIENT_ID_2, CLIENT_ID_3]
appleIdKeysUrl?: 'https://appleid.apple.com/auth/keys', // OPTIONAL: Specify the url to get Apple auth keys
passReqToCallback?: false, // OPTIONAL: Specify if the request is passed to callback
Expand Down
4 changes: 2 additions & 2 deletions src/strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Options = {
* Examples:
*
* passport.use(new AppleTokenStrategy({
* clientID: 'apple_client_id', // Specify the CLIENT_ID of the app that accesses the backend
* clientId: 'apple_client_id', // Specify the CLIENT_ID of the app that accesses the backend
* // Or, if multiple clients access the backend:
* //[CLIENT_ID_1, CLIENT_ID_2, CLIENT_ID_3]
* appleIdKeysUrl?: 'https://appleid.apple.com/auth/keys', // OPTIONAL: Specify the url to get Apple auth keys
Expand Down Expand Up @@ -72,7 +72,7 @@ export class AppleTokenStrategy extends Strategy {
}

if(!options.clientId) {
throw new Error('AppleVerifyTokenStrategy requires a ClientID');
throw new Error('AppleVerifyTokenStrategy requires a clientId');
}

this.appleIdKeysUrl = options.appleIdKeysUrl || 'https://appleid.apple.com/auth/keys';
Expand Down

0 comments on commit 0e3f4e9

Please sign in to comment.