Hadi Farhadi

Results 3 comments of Hadi Farhadi
trafficstars

All that we want is: request with a expired token and refresh token: ` curl -X POST -H 'Authorization: bearer dGVzdGNsaWVudDpzZWNyZXQ=' -d 'refresh_token=fdb8fdbecf1d03ce5e6125c067733c0d51de209c&grant_type=refresh_token' localhost:8000/auth/refresh_token/ ` and response: `{ "token_type":"bearer", "access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiVlx1MDAxNcKbwoNUwoonbFPCu8KhwrYiLCJpYXQiOjE0NDQyNjI4NjYsImV4cCI6MTQ0NDI2Mjg4Nn0.Dww7TC-d0teDAgsmKHw7bhF2THNichsE6rVJq9xu_2s",...

check your aioredis version, this version(fastapi-limiter on pypi == 0.1.4) doesn't work with aioredis >= 2.0 for version 2.0 and above, I think the maintainer must change the below code:...

add `postLoginRoute: '/neededRedirectAfterlogin,` to your config