Skip to content
masterclass Buddy

Better Auth · Concept

lastLoginMethod

Better Auth's last login method plugin records the user's latest sign-in method, such as email or Google. It stores the value in a cookie by default and can also save it on the user record.

Last updated

Syntax

lastLoginMethod(options?)
lastLoginMethodClient(options?)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • lastLoginMethod
  • lastLoginMethodClient
  • getLastUsedLoginMethod
  • isLastUsedLoginMethod
  • clearLastUsedLoginMethod
  • storeInDatabase
  • customResolveMethod
  • beforeStoreCookie

Source: Last Login Method. Checked 2026-11-03.