-
Notifications
You must be signed in to change notification settings - Fork 11
feat: request grant confirmation for config updates #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 22 commits
29fbddf
07183bc
eb14c77
3dc2aa4
fb757f2
b41355d
1186c08
423c272
468fd0f
b5f0bbf
de8afd3
e407768
961b383
e746c43
c289840
618e0d3
7a09f69
14b72e1
3d928d2
83980cb
c08999a
3a6352b
ff89b02
623a8ce
af10f44
16ca8a1
31f1791
2c7d59b
aeb3f94
c28ec39
874c16a
fea654c
865158a
1803c98
1da37fd
5d124b0
952b57c
d584b93
31e97f9
2f00e24
987cdfb
b1e3195
d18ae66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { createCookieSessionStorage } from '@remix-run/node' | ||
|
|
||
| const { getSession, commitSession, destroySession } = | ||
| createCookieSessionStorage({ | ||
| cookie: { | ||
| name: 'wmtools-session', | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you think we should add a maxAge or delete the wmtools-session cookie when the session/tab closes? only session gets cleared after a session but not this
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sadly there is no way of detecting when tab closes (browser event |
||
| httpOnly: true, | ||
| secure: true, | ||
| sameSite: 'none', | ||
| secrets: [ | ||
| process.env.SESSION_COOKIE_SECRET_KEY || 'supersecretilpaystring' | ||
lengyel-arpad85 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ] | ||
| } | ||
| }) | ||
|
|
||
| export { getSession, commitSession, destroySession } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import 'express-session' | ||
|
|
||
| declare module 'express-session' { | ||
| interface Session { | ||
| validForWallet?: string | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.