aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-02-06 02:29:07 -0800
committerFuwn <[email protected]>2024-02-06 02:29:07 -0800
commitd1be3ef67a4e403dc9ee76d97b156eda57adafff (patch)
tree4306fe316cb9322317ef0cd1feb016f2eb533b91 /src/lib
parentfeat(layout): remove stores using localstorage (diff)
downloaddue.moe-d1be3ef67a4e403dc9ee76d97b156eda57adafff.tar.xz
due.moe-d1be3ef67a4e403dc9ee76d97b156eda57adafff.zip
feat: stronger logout
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Utility/oauth.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/Utility/oauth.ts b/src/lib/Utility/oauth.ts
index 1c35223d..bc71db5e 100644
--- a/src/lib/Utility/oauth.ts
+++ b/src/lib/Utility/oauth.ts
@@ -1,4 +1,3 @@
-import { dev } from '$app/environment';
import { redirect, type Cookies } from '@sveltejs/kit';
export interface ClientOptions {
@@ -42,9 +41,9 @@ export const callback = async (options: CallbackOptions) => {
{
path: '/',
maxAge: 60 * 60 * 24 * 7,
- httpOnly: true,
+ httpOnly: false,
sameSite: 'lax',
- secure: !dev
+ secure: false
}
);