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

Error when trying to use Asgardeo React SDK on Stackblitz #199

Open
pavinduLakshan opened this issue Aug 6, 2023 · 1 comment
Open

Error when trying to use Asgardeo React SDK on Stackblitz #199

pavinduLakshan opened this issue Aug 6, 2023 · 1 comment
Labels
bug Something isn't working Hacktoberfest

Comments

@pavinduLakshan
Copy link
Contributor

pavinduLakshan commented Aug 6, 2023

Describe the issue:

I'm trying to create a demo using the React SDK in Stackblitz Cloud IDE.

https://stackblitz.com/edit/stackblitz-starters-kcgygm?file=src%2Findex.tsx

I have configured an application and updated the configs accordingly. This is the protocol configs of the app I use.

Screenshot 2023-08-06 at 21 47 09

However, when I click on the Sign In button, nothing happens and I see the following log in Stackblitz console.

{
  message: "There was no refresh token found. Asgardeo doesn't return a refresh token if the refresh token grant is not enabled.", 
  name: "No refresh token found.", 
  code: "SPA-AUTH_HELPER-HR-SE01"
}

The following error can be seen in the browser console.

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'toString')
    at S.eval (main.js:2:205363)
    at Generator.next (<anonymous>)
    at a (main.js:2:191464)

Screenshot 2023-08-06 at 21 55 42

How to reproduce:

  1. Fork the Stackblitz project https://stackblitz.com/edit/stackblitz-starters-kcgygm?file=src%2Findex.tsx
  2. Create an application in Asgardeo console and update the configs accordingly in src/index.tsx
  3. Click on the Sign In button and observe the console output.

Expected behavior:

Should be able to use React SDK on cloud IDEs such as Stackblitz, CodeSandbox etc.

Environment information (Please complete the following information; remove any unnecessary fields) :

  • Product Version: [e.g., IS 5.10.0, IS 5.9.0]
  • OS: Mac
  • Database: [e.g., MySQL, H2]
  • Userstore: [e.g., LDAP, JDBC]

Optional Fields

Related issues:

Suggested labels:

@pavinduLakshan pavinduLakshan added the bug Something isn't working label Aug 6, 2023
@pavinduLakshan pavinduLakshan changed the title No refresh token found error when trying to use React SDK on Stackblitz Error when trying to use Asgardeo React SDK on Stackblitz Oct 9, 2024
@pavinduLakshan
Copy link
Contributor Author

Now there is no error on clicking on the signin button, but the Asgardeo login page is not loading.

Screenshot 2024-10-09 at 14 52 47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants