Extend Auth.js Types Globally #20

Merged
schreifuchs merged 4 commits from issue-7 into main 2026-04-03 17:26:08 +02:00
Owner

Resolves #7

Resolves #7
schreifuchs added 1 commit 2026-04-03 13:06:59 +02:00
refactor: extend auth.js types globally (resolves #7)
Commit / ci (push) Has been cancelled
PullRequest / publish (pull_request) Failing after 2m41s
8483ab9e84
schreifuchs added 1 commit 2026-04-03 13:54:43 +02:00
chore: resolve merge conflicts
Commit / ci (push) Has been cancelled
PullRequest / publish (pull_request) Failing after 2m28s
d839e9f178
schreifuchs added 1 commit 2026-04-03 13:57:56 +02:00
ci: fix docker hub rate limit with ecr mirror
Commit / ci (push) Has been cancelled
PullRequest / publish (pull_request) Successful in 4m8s
641524218e
Author
Owner

Why exactly do we put it into a module?

Why exactly do we put it into a module?
Author
Owner

We use module augmentation ('declare module') to extend the existing '@auth/sveltekit' interface globally. This makes SvelteKit's 'locals.auth()' return value strictly typed (including 'id' and 'email') across the entire project, removing the need for manual type casting or 'weird thingamajigs' in our server load functions and actions.

We use module augmentation ('declare module') to extend the existing '@auth/sveltekit' interface globally. This makes SvelteKit's 'locals.auth()' return value strictly typed (including 'id' and 'email') across the entire project, removing the need for manual type casting or 'weird thingamajigs' in our server load functions and actions.
schreifuchs reviewed 2026-04-03 14:26:03 +02:00
Dockerfile Outdated
@@ -1,4 +1,4 @@
FROM node:25-trixie AS base
FROM public.ecr.aws/docker/library/node:25-trixie AS base
Author
Owner

do not change that

do not change that
schreifuchs added 1 commit 2026-04-03 14:28:25 +02:00
revert: Docker base image to original
Commit / ci (push) Successful in 10m26s
PullRequest / publish (pull_request) Failing after 2m27s
2c47870e0f
schreifuchs merged commit 3bced84749 into main 2026-04-03 17:26:08 +02:00
schreifuchs deleted branch issue-7 2026-04-03 17:26:08 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: schreifuchs/aktiteil#20