Open sumitsharansatsangi opened 3 years ago
When I am using refresh token to access the url http://localhost:8000/refresh It is giving {"detail":"Method Not Allowed"}
http://localhost:8000/refresh
{"detail":"Method Not Allowed"}
I am using following command to test it. curl -H "Authorization: Bearer $REFRESH_TOKEN" http://localhost:8000/refresh
curl -H "Authorization: Bearer $REFRESH_TOKEN" http://localhost:8000/refresh
It is happening with refresh-revoke too.
You shall use POST, not default GET
curl -X "POST" -H "Authorization: Bearer $REFRESH_TOKEN" http://localhost:8000/refresh
When I am using refresh token to access the url
http://localhost:8000/refresh
It is giving{"detail":"Method Not Allowed"}
I am using following command to test it.
curl -H "Authorization: Bearer $REFRESH_TOKEN" http://localhost:8000/refresh
It is happening with refresh-revoke too.