-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not refresh token on every request and cache verified ones #3014
Do not refresh token on every request and cache verified ones #3014
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## staging #3014 +/- ##
===========================================
- Coverage 96.79% 91.41% -5.39%
===========================================
Files 30 110 +80
Lines 8680 10971 +2291
Branches 121 882 +761
===========================================
+ Hits 8402 10029 +1627
- Misses 278 878 +600
- Partials 0 64 +64 ☔ View full report in Codecov by Sentry. |
async function getUserFromHeader(header: string, client: MongoClient) { | ||
async function getTokenCache(token: string, client: MongoClient) { | ||
const db = client.db('customData'); | ||
const collection = db.collection('tokenCache'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drive-by: let's discuss how to cache tokens before creating a DB collection for this.
In favor of #3220 |
For comparison:
https://staging-aiid.netlify.app/apps/submitted/
https://pr-3014--staging-aiid.netlify.app/apps/submitted/