IndominusByte / fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
http://indominusbyte.github.io/fastapi-jwt-auth/
MIT License
630 stars 143 forks source link

Method Not Allowed #57

Open sumitsharansatsangi opened 3 years ago

sumitsharansatsangi commented 3 years ago

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.

dimostenis commented 2 years ago

You shall use POST, not default GET

curl -X "POST" -H "Authorization: Bearer $REFRESH_TOKEN" http://localhost:8000/refresh