express-authenticators
Advanced tools
Comparing version 0.2.0-experiiment-2 to 0.2.0-experiiment-3
@@ -20,11 +20,7 @@ "use strict"; | ||
constructor(childConfig) { | ||
super(Object.assign(Object.assign({ consentURL: 'https://appleid.apple.com/auth/authorize', | ||
super(Object.assign({ consentURL: 'https://appleid.apple.com/auth/authorize', | ||
// https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens | ||
tokenURL: 'https://appleid.apple.com/auth/token', scope: ['email', 'name'].join(' ') }, childConfig), { | ||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment | ||
// @ts-ignore | ||
get clientSecret() { | ||
// https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048 | ||
throw new Error('AppleAuthenticator.clientSecret is not available'); | ||
} }), { | ||
tokenURL: 'https://appleid.apple.com/auth/token', scope: ['email', 'name'].join(' '), | ||
// https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens#3262048 | ||
clientSecret: '' }, childConfig), { | ||
responseType: 'code id_token', | ||
@@ -31,0 +27,0 @@ ignoreGrantType: false, |
{ | ||
"name": "express-authenticators", | ||
"version": "0.2.0-experiiment-2", | ||
"version": "0.2.0-experiiment-3", | ||
"description": "Third party authenticators in nodejs. Support various providers. Almost zero dependencies.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
122570
1727