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: "/",
|
path: "/",
|
||||||
domain: "localhost",
|
domain: "localhost",
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
secure: true,
|
||||||
expires: refreshExpires,
|
expires: refreshExpires,
|
||||||
}).setCookie('accessToken', accessToken, {
|
}).setCookie('accessToken', accessToken, {
|
||||||
path: "/",
|
path: "/",
|
||||||
domain: "localhost",
|
domain: "localhost",
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
secure: true,
|
||||||
})
|
})
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue