Extend Auth.js Types Globally #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Where:
src/app.d.tsWhy: TypeScript doesn't inherently know
session.user.idexists, leading to hacky workarounds.Fix: Override
@auth/sveltekitSession types inapp.d.tsto includeidandemailstrictly.