Using Sqlalchemy 1.14 + Fastapi (asyncpg), in project
Trying to connect to azure poetgre db via azure identity access token.
But the access token expires every 90 minutes or so(and that's the limit of access token). So afterwards, the connection that sqlalchemy uses start throwing error
Is there a way to set connection expiry? So i can set it to the same as azure access token expiry and then refresh token if it expires and create new connection?
Cant' use postgres db user because of devops restrictions, so have to do it with azure access token
I see that there is timeout property but it's not related to expiry and can't be used