Skip to content

Commit 0a44352

Browse files
Remove Lucia
Soon-to-be deprecated but I wasn't using it by itself anyway
1 parent 3c18e3e commit 0a44352

File tree

3 files changed

+0
-80
lines changed

3 files changed

+0
-80
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"eslint-config-prettier": "^9.1.0",
3333
"eslint-plugin-svelte": "^2.45.1",
3434
"globals": "^15.11.0",
35-
"lucia": "^3.2.1",
3635
"lucide-svelte": "^0.453.0",
3736
"mode-watcher": "^0.4.1",
3837
"octokit": "^4.0.2",

pnpm-lock.yaml

Lines changed: 0 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/server/auth.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,8 @@
11
import { dev } from "$app/environment";
22
import { GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET } from "$env/static/private";
33
import { GitHub } from "arctic";
4-
import { type Adapter, type DatabaseSession, type DatabaseUser, Lucia, type UserId } from "lucia";
54
import { PROD_URL } from "$lib/config";
65

7-
class EmptyAdapter implements Adapter {
8-
deleteExpiredSessions(): Promise<void> {
9-
return Promise.resolve();
10-
}
11-
12-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
13-
deleteSession(_sessionId: string): Promise<void> {
14-
return Promise.resolve();
15-
}
16-
17-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
18-
deleteUserSessions(_userId: UserId): Promise<void> {
19-
return Promise.resolve();
20-
}
21-
22-
getSessionAndUser(
23-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
24-
_sessionId: string
25-
): Promise<[session: DatabaseSession | null, user: DatabaseUser | null]> {
26-
return Promise.resolve([null, null]);
27-
}
28-
29-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
30-
getUserSessions(_userId: UserId): Promise<DatabaseSession[]> {
31-
return Promise.resolve([]);
32-
}
33-
34-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
35-
setSession(_session: DatabaseSession): Promise<void> {
36-
return Promise.resolve();
37-
}
38-
39-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
40-
updateSessionExpiration(_sessionId: string, _expiresAt: Date): Promise<void> {
41-
return Promise.resolve();
42-
}
43-
}
44-
45-
const adapter = new EmptyAdapter();
46-
47-
export const lucia = new Lucia(adapter);
48-
496
export const github = new GitHub(GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET, {
507
redirectURI: `${dev ? "http://localhost:5173" : PROD_URL}/login/callback`
518
});

0 commit comments

Comments
 (0)