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
// TODO: chi-session has a design problem: it calls gob.Register for "Set"
117
+
// But if the server restarts, then the first "Get" will fail to decode the previously stored session data because the structs are not registered yet.
118
+
// So here we register all session structs ahead.
119
+
gob.Register(auth.LinkAccountData{}) // used by oauth link account
120
+
gob.Register(&webauthn.SessionData{}) // used by webauthn
121
+
gob.Register(&sessions.Session{}) // used by oauth2's SessionsStore. FIXME: it seems to be an abuse, why the Session struct itself is stored in session store again?
0 commit comments