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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
react, typescript

Research direction

Start by reproducing the failure shown in the screencast with the @asgardeo/express and @asgardeo/react packages, then trace the login and token calls made after authentication. Done means login succeeds when code grant is enabled without the public client option, and signing in again in the same tab does not redirect to the same callback URL.

Written by the indexing model from the issue text.

Description

Severity/Major Type/Bug
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
  • I have searched the existing issues and this is not a duplicate.
  • I have provided all the necessary information.
  • I have tested the issue on the latest version of the package.
Dominant language
TypeScript
Stars
18
Forks
67
Avg merge
4h 6m
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from asgardeo/javascript

All issues in asgardeo/javascript

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.