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 params to the URL of trySignInSilently. #164

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

Comments

@savindi7
Copy link
Contributor

savindi7 commented Mar 13, 2024

Describe the improvement

  • Introduce the support to send additional params to the URL constructed in the silent sign in method (trySignInSilently).
  • We can use these additional params to customise the authentication script.

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();
    }
  });
@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