We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9ebf3 commit f2ad398Copy full SHA for f2ad398
1 file changed
server/utils/atproto/storage.ts
@@ -26,7 +26,11 @@ export class OAuthStateStore implements NodeSavedStateStore {
26
}
27
28
async set(key: string, val: NodeSavedState) {
29
- setCookie(this.event, this.cookieKey, key)
+ setCookie(this.event, this.cookieKey, key, {
30
+ httpOnly: true,
31
+ secure: !import.meta.dev,
32
+ sameSite: 'lax',
33
+ })
34
await this.storage.setItem<NodeSavedState>(key, val)
35
36
@@ -60,7 +64,11 @@ export class OAuthSessionStore implements NodeSavedSessionStore {
60
64
61
65
62
66
async set(key: string, val: NodeSavedSession) {
63
67
68
69
70
71
72
await this.storage.setItem<NodeSavedSession>(key, val)
73
74
0 commit comments