Skip to content

Commit 83183c8

Browse files
committed
Update typed signInWithBrowser parameters
1 parent c93b61e commit 83183c8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export namespace Okta {
9090
interface BrowserOptions {
9191
idp?: string;
9292
noSSO?: boolean;
93+
login_hint?: string
94+
prompt?: string
9395
}
9496

9597
interface StringAnyMap {

types/index.test-d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ idp
4343

4444
expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ noSSO: true }));
4545

46+
expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ login_hint: 'some@email.com' }));
47+
48+
expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ prompt: 'Prompt' }));
49+
4650
expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.authenticate({ sessionToken: 'sessionToken' }));
4751

4852
expectType<Promise<{ resolve_type: string; }>>(OktaSDK.signOut());

0 commit comments

Comments
 (0)