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