mirror of
https://github.com/BradNut/node-auth
synced 2025-09-08 17:40:17 +00:00
Adding Caddyfile.
This commit is contained in:
parent
15993b4cec
commit
24c7442dfd
2 changed files with 9 additions and 0 deletions
7
Caddyfile
Normal file
7
Caddyfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
local_certs
|
||||
}
|
||||
|
||||
nodeauth.dev {
|
||||
reverse_proxy 127.0.0.1:3000
|
||||
}
|
||||
|
|
@ -60,11 +60,13 @@ export async function refreshTokens(sessionToken, userId, reply) {
|
|||
path: "/",
|
||||
domain: "localhost",
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
expires: refreshExpires,
|
||||
}).setCookie('accessToken', accessToken, {
|
||||
path: "/",
|
||||
domain: "localhost",
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
})
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
|
|
|||
Loading…
Reference in a new issue