You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently we save the session info in Notion, notion API is slow, so the checking becomes slow also.
Migrate the session checker to the built-in by using Firebase Admin in the server.
Half-Closes (#94)
## Description
Tested some endpoints only 🤞🏻
```
HTTP Requests
-------------
GET /api/private/user/by-uuid/*** 200 OK
PATCH /api/private/user/update 200 OK
POST /api/private/user/slug-checker/*** 200 OK
GET /api/private/question/by-uid/pagination/*** 200 OK
```
## Current Tasks
<!-- (Optional) List the tasks that you're planning to do in this PR.
This is to indicate how much you have been progressing before this PR is ready for review -->
- [x] Verify Id Token
- [ ] Revoke Refresh Tokens on Session-Destroy ~_It requires `GOOGLE_APPLICATION_CREDENTIALS`. Will be on separate PR._
Is your feature request related to a problem? Please describe.
Currently we save the session info in Notion, notion API is slow, so the checking becomes slow also.
Migrate the session checker to the built-in by using Firebase Admin in the server.
Describe the solution you'd like
https://firebase.google.com/docs/auth/admin/verify-id-tokens?hl=id#web
Additional context
Should applied on all private endpoints.
The text was updated successfully, but these errors were encountered: