Skip to content

Commit

Permalink
Update typed signInWithBrowser parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
arelstone committed Jan 22, 2024
1 parent c93b61e commit 83183c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ export namespace Okta {
interface BrowserOptions {
idp?: string;
noSSO?: boolean;
login_hint?: string
prompt?: string
}

interface StringAnyMap {
Expand Down
4 changes: 4 additions & 0 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ idp

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

expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ login_hint: '[email protected]' }));

expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.signInWithBrowser({ prompt: 'Prompt' }));

expectType<Promise<Okta.AuthenticationResponse>>(OktaSDK.authenticate({ sessionToken: 'sessionToken' }));

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

0 comments on commit 83183c8

Please sign in to comment.