-
Notifications
You must be signed in to change notification settings - Fork 97
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
When using sign in for the first time, always facing a Uncaught runtime error #240
Comments
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) |
I have the same problem. I'm handling my credentials via .env. |
Which boilerplate are you on? |
No boilerplate at all - it's a standalone react instance built by webpack 5. However - I've already managed to get the error fixed. Can't really remember what the solution was though.
Furthermore I'm now using the I'm pretty sure, I've missed out on something back then. It was either a wrong config or the custom state check. However - with the config and the SecureApp component - it works just fine. |
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: