It works great when i run this on my machine, but when I do this in docker-container (i have docker-compose.yml file with 2 services: flask and db(PostgreSQL)), the process fails at loop.run_until_complete(verified_token). I am not sure how to work around that issue. Please help if you have any ideas! Thanks in advance!
I am writing a flask-api where token-verification is done via okta-jwt-verifier. I have this code to verify tokens:
It works great when i run this on my machine, but when I do this in docker-container (i have docker-compose.yml file with 2 services: flask and db(PostgreSQL)), the process fails at loop.run_until_complete(verified_token). I am not sure how to work around that issue. Please help if you have any ideas! Thanks in advance!