I am slowing implementing the PKCE flow, and now at the point of refreshing tokens I continue to get 404 responses.
I have turned on offline access
I reduced the token lifetime for testing
I have sent the offline_access
as scope:
https://dev-8821kz09.auth0.com/authorize
?client_id=FYlBPbNm7vZi9YPwVFyR7J2TLKrzNtST
&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fhome
&audience=https%3A%2F%2Flocahost%2Fquery
&scope=data%3Achange+email+offline_access+openid+profile
&response_type=code&response_mode=query
&state=xFX86-qJdd6Ab-ngM4caqfYX1uPxZ6CTEGvLlymZmo8
&nonce=1Bv0g6acXXifaBkr4LfZUwmAQHES3_X1FYZqv-w3u40
&code_challenge=X0sVsjv8EGchYvfzooDju8FbyDfgu4mW_1qbc0p-5A0
&code_challenge_method=S256
Here is my refresh request:
curl "https://dev-8821kz09.auth0.com/oath/token"
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0"
-H "Accept: application/json"
-H "Accept-Language: en-CA,en-US;q=0.7,en;q=0.3" --compressed
-H "Referer: http://localhost:3000/home?code=BZjtS7V3IGdQVDJP&state=SUeWnnCd_FnHCiX0kcj0M5KVkFn7Uv_cw7jogTWE1Q8"
-H "content-type: application/x-www-form-urlencoded"
-H "Origin: http://localhost:3000"
-H "Connection: keep-alive"
-H "TE: Trailers"
--data "grant_type=refresh_token&client_id=FYlBPbNm7vZi9YPwVFyR7J2TLKrzNtST&refresh_token=xxx"
What did I do wrong?
Thank you.