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
Copy file name to clipboardExpand all lines: pages/lucia-v3/migrate.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ We ultimately came to the conclusion that it'd be easier and faster to just impl
14
14
15
15
Replacing Lucia v3 with your own implementation should be a straight-forward path, especially since most of your knowledge will still be very useful. No database migrations are necessary.
16
16
17
-
If you're fine with invalidating all sessions (and signing out everyone), consider reading through the [new implementation guide](/sessions/basic).
17
+
If you're fine with invalidating all sessions (and signing out everyone), consider reading through the [new implementation guide](/sessions/basic). The new API is more secure and patches out a very impractical timing attack (see code below for details).
Sessions are stored in a database with their ID and hash of the secret. The secret is hashed before storage to minimize the impact of breaches and leaks. Once a token is lost, the server cannot re-issue it.
9
+
Sessions have an ID and secret. We're using a separate ID and secret to prevent any possibility of a timing attacks. The secret is hashed before storage to minimize the impact of breaches and leaks.
10
10
11
11
```ts
12
12
interfaceSession {
@@ -16,7 +16,7 @@ interface Session {
16
16
}
17
17
```
18
18
19
-
Tokens issued to clients include both the ID and secret:
19
+
Tokens issued to clients include both the ID and un-hashed secret.
0 commit comments