File tree Expand file tree Collapse file tree
drift/instrumentation/kinde Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Kinde SDK instrumentation for REPLAY mode.
22
33This instrumentation patches StorageManager.get() to handle device ID mismatch
4- during replay. This enables successful authentication across Flask, FastAPI,
5- and other frameworks using Kinde's FrameworkAwareStorage.
4+ during replay. This enables successful authentication for Flask or FastAPI.
65
76Problem: During replay, Kinde's StorageManager generates a new UUID on server
87startup, but the replayed session contains data keyed with the old device ID
15143. Extract device ID from found key and cache it for future lookups
16154. Return the found value
1716
18- This approach is framework-agnostic - it works with Flask, FastAPI, or any
19- framework using Kinde's FrameworkAwareStorage.
17+ This approach is framework-agnostic - it works with Flask or FastAPI. Kinde does not support Django.
2018
2119Only active in REPLAY mode.
2220"""
You can’t perform that action at this time.
0 commit comments