UNPKG

@adonis-agora/authkit-react

Version:

Frontend ergonomics over AuthKit for AdonisJS + Inertia + React apps: a typed useAuth() hook, role-gating hooks and gating components.

3 lines (2 loc) • 267 B
export type LastLoginMethod = 'password' | 'magic_link' | 'otp' | 'passkey' | `social:${string}` | `custom:${string}`; export declare function isLastUsedLoginMethod(lastUsed: string | null | undefined, methods: LastLoginMethod | readonly LastLoginMethod[]): boolean;