LastLoginMethod.ts overview

Last-login-method plugin: records the sign-in method in the session’s attributes.method on afterSignIn and afterSignUp. The browser hint cookie is the HTTP tier’s (cookie.lastLoginMethod), which covers every sign-in endpoint.


Exports Grouped by Category


utils

LastLoginMethodPlugin

Records the sign-in method into the issued session’s attributes.method on afterSignIn and afterSignUp.

Layer<Hooks, never, Hooks | SessionService> — provide your SessionService layer; it is acquired when the layer is built. Configured with isolateTaps: true, so recording the method never breaks the sign-in itself.

Signature

declare const LastLoginMethodPlugin: Layer<Hooks.Hooks, never, SessionService | Hooks.Hooks>

Source


This site uses Just the Docs, a documentation theme for Jekyll.