[PR #5883] "Fix Magic Link plugin type and token handling for Better Auth CLI" #14541

Open
opened 2026-04-13 09:31:28 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5883

State: open
Merged: No


"Fix Magic Link plugin: update type handling, token storage, and verification logic for Better Auth CLI"


Summary by cubic

Fixes Magic Link token hashing and callback URL handling, and updates CLI tsconfig to work with NodeNext setups. Addresses Linear issue #5879.

  • Bug Fixes

    • Remove redundant type check so custom-hasher storeToken objects hash tokens correctly.
    • Standardize origin checks: decode callback URLs and default to "/" when missing.
  • Refactors

    • Update CLI tsconfig (ESNext module, NodeNext resolution, ES2022 target, baseUrl, path alias to core dist).
    • Add test fixtures for getConfig with varied tsconfig path mappings and Prisma-based auth setups.

Written for commit 77a831f6ea. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5883 **State:** open **Merged:** No --- "Fix Magic Link plugin: update type handling, token storage, and verification logic for Better Auth CLI" <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes Magic Link token hashing and callback URL handling, and updates CLI tsconfig to work with NodeNext setups. Addresses Linear issue #5879. - **Bug Fixes** - Remove redundant type check so custom-hasher storeToken objects hash tokens correctly. - Standardize origin checks: decode callback URLs and default to "/" when missing. - **Refactors** - Update CLI tsconfig (ESNext module, NodeNext resolution, ES2022 target, baseUrl, path alias to core dist). - Add test fixtures for getConfig with varied tsconfig path mappings and Prisma-based auth setups. <sup>Written for commit 77a831f6eaed723965a167a06db6279f83cae8e2. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:31:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14541