Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SignIn() method for SSO end up with 400 bad request #40

Open
tharindubuddhi opened this issue Dec 15, 2024 · 1 comment
Open

SignIn() method for SSO end up with 400 bad request #40

tharindubuddhi opened this issue Dec 15, 2024 · 1 comment

Comments

@tharindubuddhi
Copy link

I have followed the example in Readme. My react app is running locally in
http://localhost:5173
and I have a login page
http://localhost:5173/login

My redirect URI default set in workos portal - http://localhost:5173
Also I changed it to http://localhost:5173/login

Both case end up having the following
Network request

https://api.workos.com/user_management/authenticate
PayLoad
{
"client_id": "client_XXXXXXX",
"grant_type": "refresh_token",
"refresh_token": null
}
Response
400 Bad Request
{
"error": "invalid_request",
"error_description": "Missing refresh token."
}

@tharindubuddhi tharindubuddhi changed the title SignIn() method end up with 400 bad request SignIn() method for SSO end up with 400 bad request Dec 15, 2024
@outofgamut
Copy link

I'm dealing with something similar. Locally, the example react QuickStart works fine. Whenever I deploy it, the initial sign-in works fine. However, when I refresh the session state isn't retained. I'm getting the same 400 - missing refresh token error mentioned here. I'm assuming the AuthKit Provider handles that for me, but maybe I have to configure something explicitly in onRefresh?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants