FormidableLabs / FormidableLabs/react-native-app-auth

invalid_client error during token exchange - clientSecret might need to be passed in request body

Open
#797 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

## Issue

Hello,

I am trying to configure the Oauth 2 flow for Whoop. The Authentication step works but hte tokenn exchange fails with the error invalid_client : Error: Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
Using postman, the flow works when the client id and secret are passed in the token request body and not as a request query parameter but I cannot seem to find the right parameters to pass in the config object to do so (if the error is even what I think).

I have looked on other issues, but can't seem to find the solution.

Thanks a lot for your time and help,

Best

---

## Environment

* **Your Identity Provider**: WHOOP
* **Platform that you're experiencing the issue on**: both
* **Are you using Expo?** No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.