From b09825a80d244d9492afbbc33a5493a39b9e913b Mon Sep 17 00:00:00 2001 From: Robert Bo Davis Date: Sun, 16 Jun 2024 10:35:50 -0400 Subject: [PATCH] fix: prompt should be optional to avoid interrupting SSO --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 2b9d859..827211e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -65,7 +65,7 @@ export class MicrosoftStrategy extends OAuth2Strategy< name = MicrosoftStrategyDefaultName; userInfoEndpoint: string; scope: string; - prompt: string; + prompt: string | undefined; constructor( { @@ -92,7 +92,7 @@ export class MicrosoftStrategy extends OAuth2Strategy< this.userInfoEndpoint = userInfoEndpoint; this.scope = this.getScope(options.scopes); - this.prompt = options.prompt ?? "none"; + this.prompt = options.prompt; } //Allow users the option to pass a scope string, or typed array