Skip to content

Commit dde9132

Browse files
Merge pull request #409 from arelstone/master
Update parameters for signInWithBrowser
2 parents c93b61e + 83183c8 commit dde9132

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

types/index.d.ts

+2
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

+4
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: '[email protected]' }));
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)