Skip to content

Commit

Permalink
Merge pull request #409 from arelstone/master
Browse files Browse the repository at this point in the history
Update parameters for signInWithBrowser
  • Loading branch information
rajdeepnanua-okta authored Jan 22, 2024
2 parents c93b61e + 83183c8 commit dde9132
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 dde9132

Please sign in to comment.