Skip to content

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

@pavinduLakshan

Description

@pavinduLakshan

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.

Screen.Recording.2026-05-12.at.11.22.42.mov

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions