tokusumi / fastapi-cloudauth

Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
MIT License
323 stars 35 forks source link

Lazy load public key for boost start time for both unit test and app #81

Open kidylee opened 1 year ago

kidylee commented 1 year ago

JWK init method call _refresh token internally, which significantly slow down unit test and app start time, is not necessary as lone as other methods checking refresh properly. In this case, only expires takes the role.

Fix issue #77