Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Login the first time redirect to React-admin welcome page

Open
#511 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react, typescript

Research direction

Start by cloning the linked reproduction repository and following its README.md. Inspect the HydraAdmin login flow, the custom authProvider checkAuth(), and adminDataProvider introspect(); done means the first login reaches the resources view without showing the React-admin welcome page or the reported console error.

Written by the indexing model from the issue text.

Description

API Platform version(s) affected: 3.2.2
@api-platform/admin: 3.4.4

Description
My context: I have a JWT protected API, and a protected Hydra-admin with a custom authProvider and the requireAuth set to true.

<HydraAdmin
      requireAuth
      entrypoint={window.origin}
      dataProvider={dataProvider}
      authProvider={authProvider}
/>

The first time I go to my admin app (https://localhost/admin), I'm redirected to the login page (https://localhost/admin#/login). No problem here.
I log in and I'm redirected to the welcome React-admin page instead of the resources view.

How to reproduce
You can clone this repository https://github.com/adguernier/api-platform-auth-provider and follow the README.md

Possible Solution
It seems the adminDataProvider introspect() method does not check the authProvider checkAuth() method.

Additional Context
The first time the login page is render, an error occurred in the console:
image

The dataProvider I've written uses the Bearer token as described in your example

An example is worth a thousand words

https://github.com/api-platform/admin/assets/7949510/153e9e78-4632-4712-80c5-540d5bdd3331

Dominant language
TypeScript
Stars
516
Forks
134
PR merge metrics
No merged PRs in 30d

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 api-platform/admin

All issues in api-platform/admin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.