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.
SubscribeRelated
lastLoginMethodlastLoginMethodClientgetLastUsedLoginMethodisLastUsedLoginMethodclearLastUsedLoginMethodstoreInDatabasecustomResolveMethodbeforeStoreCookie