[PR #4347] [MERGED] feat: add last login method plugin #5322

Closed
opened 2026-03-13 12:18:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4347
Author: @Bekacru
Created: 9/1/2025
Status: Merged
Merged: 9/1/2025
Merged by: @Bekacru

Base: canaryHead: feat/last-login


📝 Commits (2)

📊 Changes

11 files changed (+666 additions, -25 deletions)

View changed files

demo/nextjs/app/(auth)/sign-in/loading.tsx (+0 -16)
📝 demo/nextjs/components/sign-in.tsx (+29 -9)
📝 demo/nextjs/lib/auth-client.ts (+2 -0)
📝 demo/nextjs/lib/auth.ts (+2 -0)
📝 docs/components/sidebar-content.tsx (+18 -0)
docs/content/docs/plugins/last-login-method.mdx (+354 -0)
📝 packages/better-auth/src/client/plugins/index.ts (+1 -0)
📝 packages/better-auth/src/plugins/index.ts (+1 -0)
packages/better-auth/src/plugins/last-login-method/client.ts (+66 -0)
packages/better-auth/src/plugins/last-login-method/index.ts (+139 -0)
packages/better-auth/src/plugins/last-login-method/last-login-method.test.ts (+54 -0)

📄 Description

  • implementation
  • Docs

🔄 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/4347 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 9/1/2025 **Status:** ✅ Merged **Merged:** 9/1/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/last-login` --- ### 📝 Commits (2) - [`199e672`](https://github.com/better-auth/better-auth/commit/199e67211116370e53c520e36f70098b07a52b3b) feat: add last login method - [`729278b`](https://github.com/better-auth/better-auth/commit/729278bebcd71bc999fc70fbf23505427c1eef22) add docs ### 📊 Changes **11 files changed** (+666 additions, -25 deletions) <details> <summary>View changed files</summary> ➖ `demo/nextjs/app/(auth)/sign-in/loading.tsx` (+0 -16) 📝 `demo/nextjs/components/sign-in.tsx` (+29 -9) 📝 `demo/nextjs/lib/auth-client.ts` (+2 -0) 📝 `demo/nextjs/lib/auth.ts` (+2 -0) 📝 `docs/components/sidebar-content.tsx` (+18 -0) ➕ `docs/content/docs/plugins/last-login-method.mdx` (+354 -0) 📝 `packages/better-auth/src/client/plugins/index.ts` (+1 -0) 📝 `packages/better-auth/src/plugins/index.ts` (+1 -0) ➕ `packages/better-auth/src/plugins/last-login-method/client.ts` (+66 -0) ➕ `packages/better-auth/src/plugins/last-login-method/index.ts` (+139 -0) ➕ `packages/better-auth/src/plugins/last-login-method/last-login-method.test.ts` (+54 -0) </details> ### 📄 Description - [x] implementation - [x] Docs --- <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-03-13 12:18:41 -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#5322