v4 SSO Error: Invalid hook call. Hooks can only be called inside of the body of a function component #12291
Labels
source: core:admin
Source is core/admin package
status: pending reproduction
Waiting for free time to reproduce the issue, or more information
Bug report
Describe the bug
Upon successful SSO authentication, I get the following console error upon reaching the /admin/auth/login/success endpoint:
Steps to reproduce the behavior
Expected behavior
I expect that I would see login success
System
Node.js version: 16.5.0
NPM version: 7.20.3
Strapi version: 4.0.5
Database: Postgres
Operating system: MacOS
Also, if you go to: https://reactjs.org/docs/error-decoder.html/?invariant=321 you will see a list of possible reasons for this error. I have checked and do not have multiple versions of React. I checked the Strapi source code for AuthResponse/index.js and do notice hooks being used.
The text was updated successfully, but these errors were encountered: