Closed t-tien closed 3 years ago
I figure out that delete back slash can solve the problem
curl -d "client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]&redirect_uri=postmessage&grant_type=authorization_code&code=[AUTH_CODE]" https://oauth2.googleapis.com/token
Describe the bug I'm used vue-google-oauth2 to get authCode from google, then I want to use it to exchange access and refresh token by below:
but I get an 400 error:
What I went wrong? Thanks for your support
To Reproduce
Replace client_id, client_secret, auth_code and run above Curl command
Expected behavior
Google OAuth response access token and refresh token