From 83183c821411fe538876e0e70823c631e012fab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Daureh=C3=B8j?= Date: Mon, 22 Jan 2024 13:34:17 +0100 Subject: [PATCH] Update typed signInWithBrowser parameters --- types/index.d.ts | 2 ++ types/index.test-d.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index f3ad4ed3..955322e3 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -90,6 +90,8 @@ export namespace Okta { interface BrowserOptions { idp?: string; noSSO?: boolean; + login_hint?: string + prompt?: string } interface StringAnyMap { diff --git a/types/index.test-d.ts b/types/index.test-d.ts index 96766cd3..e33243d2 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -43,6 +43,10 @@ expectType>(OktaSDK.signInWithBrowser({ idp expectType>(OktaSDK.signInWithBrowser({ noSSO: true })); +expectType>(OktaSDK.signInWithBrowser({ login_hint: 'some@email.com' })); + +expectType>(OktaSDK.signInWithBrowser({ prompt: 'Prompt' })); + expectType>(OktaSDK.authenticate({ sessionToken: 'sessionToken' })); expectType>(OktaSDK.signOut());