Skip to content

Commit

Permalink
Make the PKCE gc loop use RepeatableRead (#8323)
Browse files Browse the repository at this point in the history
I'm not sure how likely this is to be useful.
  • Loading branch information
msullivan authored Feb 10, 2025
1 parent 63faf72 commit 7e132d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edb/server/protocol/auth_ext/pkce.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import dataclasses

from edb.ir import statypes
from edb.server import defines
from edb.server.protocol import execute

if typing.TYPE_CHECKING:
Expand Down Expand Up @@ -181,6 +182,7 @@ async def _delete_challenge(db: edbtenant.dbview.Database) -> None:
<duration>$validity
""",
variables={"validity": VALIDITY.to_backend_str()},
tx_isolation=defines.TxIsolationLevel.RepeatableRead,
cached_globally=True,
query_tag='gel/auth',
)
Expand Down

0 comments on commit 7e132d9

Please sign in to comment.