Replies: 1 comment 2 replies
-
Hello @pcnoic 👋 Two things about this:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
We've been facing an issue with the
/api/token
endpoint in our OAuth2 authentication flow, specifically when implementing the Proof Key for Code Exchange (PKCE).We're managing the entire flow from our frontend application. In order to adhere to the PKCE protocol, we've written two functions: one to generate a code verifier and another to generate a code challenge from the verifier. Here they are:
We then send a POST request to the
/api/token
endpoint, following the protocol described in the documentation:Despite following these steps and making our endpoint a public client, we're facing a
400 invalid_grant
error response from the server. We're having a hard time understanding what might be the root cause of this issue.Any ideas or assistance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions