[PR #6027] [MERGED] feat(last-login-method): add support for 'siwe' as a last login method and added tests #14640

Closed
opened 2026-04-13 09:33:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6027
Author: @rovertrack
Created: 11/16/2025
Status: Merged
Merged: 11/16/2025
Merged by: @Bekacru

Base: canaryHead: fix/lastloginsiwe


📝 Commits (3)

  • 1f4ed26 feat(last-login-method): add support for 'siwe' as a last login method and added tests
  • 54fcfaf method conflicts
  • 7488cc5 fix(last-login-method): reorder imports in last-login-method test file

📊 Changes

2 files changed (+84 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/plugins/last-login-method/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/last-login-method/last-login-method.test.ts (+83 -2)

📄 Description

solves #6022


Summary by cubic

Adds SIWE support to the last-login-method plugin. SIWE sign-ins are now tracked as "siwe".

  • New Features
    • Detect SIWE routes and set the last login method to "siwe".
    • Update the cookie and user.lastLoginMethod in the database for SIWE; tests added for both flows.
    • Addresses #6022.

Written for commit 7488cc50d8. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6027 **Author:** [@rovertrack](https://github.com/rovertrack) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/lastloginsiwe` --- ### 📝 Commits (3) - [`1f4ed26`](https://github.com/better-auth/better-auth/commit/1f4ed26f2ec50185e694e0e2920b8687deb9da50) feat(last-login-method): add support for 'siwe' as a last login method and added tests - [`54fcfaf`](https://github.com/better-auth/better-auth/commit/54fcfaf80dbd567eccc898b0d66d4bb52431e13d) method conflicts - [`7488cc5`](https://github.com/better-auth/better-auth/commit/7488cc50d8e6c454c9a5e5769f64a8248f1722c4) fix(last-login-method): reorder imports in last-login-method test file ### 📊 Changes **2 files changed** (+84 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/last-login-method/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/last-login-method/last-login-method.test.ts` (+83 -2) </details> ### 📄 Description solves **#6022** <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds SIWE support to the last-login-method plugin. SIWE sign-ins are now tracked as "siwe". - **New Features** - Detect SIWE routes and set the last login method to "siwe". - Update the cookie and user.lastLoginMethod in the database for SIWE; tests added for both flows. - Addresses #6022. <sup>Written for commit 7488cc50d8e6c454c9a5e5769f64a8248f1722c4. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:33:33 -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#14640