We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the issue: When using sign in for the first time, always facing a Uncaught runtime error.
Console log
However, weirdly this issue is not reproduced if we have refreshed the page.
How to reproduce: Used a simple sign in button such as below are try.
import React from 'react'; import { useAuthContext } from "@asgardeo/auth-react"; const SignIn = () => { const { state, signIn } = useAuthContext(); if (state.isLoading) { return ( <h1>Loading</h1> ); } return ( <> <h1>AI Subscription Login Page</h1> <button onClick={ () => signIn() }>Login</button> </> ); }; export default SignIn;
Expected behavior: Redirecting to the login page of Asgardeo without an issue.
Environment information (Please complete the following information; remove any unnecessary fields) :
The text was updated successfully, but these errors were encountered:
Hi @piyumaldk,
Could you please share the SDK configuration (clientId and any other sensitive data redacted) you are using in the application.
Sorry, something went wrong.
Hi @piyumaldk, Could you please share the SDK configuration (clientId and any other sensitive data redacted) you are using in the application.
Also, how do you maintain the SDK configurations? (ex: .env, .json or in the index.jsx/main.jsx)
This is still reproducible when trying to integrate the SDK with a simple vite React app.
I have the same problem. I'm handling my credentials via .env.
No branches or pull requests
Describe the issue:
When using sign in for the first time, always facing a Uncaught runtime error.
Console log
However, weirdly this issue is not reproduced if we have refreshed the page.
How to reproduce:
Used a simple sign in button such as below are try.
Expected behavior:
Redirecting to the login page of Asgardeo without an issue.
Environment information (Please complete the following information; remove any unnecessary fields) :
The text was updated successfully, but these errors were encountered: