Skip to content

Commit

Permalink
chore: add security layer
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 5, 2025
1 parent 57a367c commit c13a7c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/server/lib/atproto/bluesky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ export class StateStore implements NodeSavedStateStore {
}

async set(key: string, val: NodeSavedState) {
setCookie(this.event, this.stateKey, btoa(JSON.stringify(val)))
setCookie(this.event, this.stateKey, btoa(JSON.stringify(val)), {
path: '/',
httpOnly: true,
secure: true,
sameSite: 'lax',
})
}

async del() {
Expand Down

0 comments on commit c13a7c1

Please sign in to comment.