forked from supabase/auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove redundant queries to get session (supabase#1204)
## What kind of change does this PR introduce? * We're querying for the session redundantly when we already have the sessionId. Every time we query for a session, it fetches all the amr claims tied to the session too. * There's no need to query for the entire session when we already have the session id, since the `auth.mfa_amr_claims` table already has a foreign-key constraint on the `auth.sessions.id` column, the insert will fail if the given `sessionId` doesn't exist
- Loading branch information
1 parent
7c07740
commit 7a6d1b4
Showing
3 changed files
with
8 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters