Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the support to send additional auth params via trySignInSilently #218

Closed
savindi7 opened this issue Mar 13, 2024 · 1 comment
Closed

Comments

@savindi7
Copy link
Contributor

savindi7 commented Mar 13, 2024

Describe the improvement

ATM, we can't pass any addition params to the passive auth request triggered via trySignInSilently.
This capability is there in the signIn hook. We need to give the same experience in trySignInSilently.

example:

// Include additional parameters in silent sign-in
trySignInSilently({
  fidp: "LOCAL",
  customParam: "value"
})
  .then((response) => {
    // Perform actions based on response
    if (!response) {
      // If silent sign-in fails, fallback to regular sign-in
      signIn();
    }
  });
@brionmario brionmario changed the title Introduce the support to send additional params to the URL of trySignInSilently Introduce the support to send additional auth params via trySignInSilently Mar 16, 2024
@savindi7
Copy link
Contributor Author

Issue fixed and verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant