asgardeo / asgardeo/javascript

React app login with code grant silently fails when public client option is not enabled

Open
#508 0 comments 0 reactions 0 assignees View on GitHub
Severity/Major Type/Bug
Dominant language
TypeScript
Stars
18
Forks
67
Avg merge
4h 6m
Merged PRs (30d)
13

Description

### Description

When the code grant is enabled without the public client option is enabled, the react application login silently fails because the token calls sent after the user is authenticated fails with the following error. Initiating signing in again in the same tab also redirects the user to same callback URL.

### Steps to Reproduce

The following screencast shows this erroneous behaviour.

https://github.com/user-attachments/assets/5f73e716-603f-4885-a764-9b775005342a

### Please select the area the issue is related to

@asgardeo/express, @asgardeo/react

### Version

latest

### Environment Details (with versions)

_No response_

### Reporter Checklist

- [x] I have searched the existing issues and this is not a duplicate.
- [x] I have provided all the necessary information.
- [x] I have tested the issue on the latest version of the package.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.