Skip to content

refactor: define module types for NextAuth user/session payloads to eliminate unsafe any castings#333

Open
DebasmitaBose0 wants to merge 1 commit into
Akshay473:mainfrom
DebasmitaBose0:refactor/type-safety-auth
Open

refactor: define module types for NextAuth user/session payloads to eliminate unsafe any castings#333
DebasmitaBose0 wants to merge 1 commit into
Akshay473:mainfrom
DebasmitaBose0:refactor/type-safety-auth

Conversation

@DebasmitaBose0

Copy link
Copy Markdown
Contributor

Closes #332

Summary

Added proper typings to NextAuth handlers.

Changes Made

  • Created type extensions in next-auth.d.ts.
  • Removed as any castings in auth.ts.

Testing

  • Verified compile status via npx tsc --noEmit.
  • Tested authorization callbacks locally.

Impact

Secures the JWT authentication payload verification.

Checklist

  • Code follows project standards
  • Tested locally
  • No unrelated changes included
  • Responsive design verified
  • Accessibility considered

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

@DebasmitaBose0 is attempting to deploy a commit to the akshay473's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[GSSOC] Implement custom module declarations for NextAuth payloads

1 participant