Moved defence against null tokens into defaultProfileTransform to apply more broadly than just Microsoft tokens.
Signed-off-by: Alex Crome <afscrome@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,7 @@ export class PassportOAuthAuthenticatorHelper {
|
||||
OAuthAuthenticatorResult<PassportProfile>
|
||||
> = async input => ({
|
||||
profile: PassportHelpers.transformProfile(
|
||||
input.fullProfile,
|
||||
input.fullProfile ?? {},
|
||||
input.session.idToken,
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user