← @mortar-kit/auth

AuthMethodInfointerface

import { AuthMethodInfo } from '@mortar-kit/auth'

interface AuthMethodInfo

A sign-in method, as the sign-in page lists it. Plain JSON, so it can cross a server function.

Properties

id: string
label: string

Button text, e.g. "Continue with Google".

input: "button" | "email"

'button': a button that posts to action; 'email': an email field that posts to action, then a code that posts to callback.

action: string

Path the sign-in form posts to.

callback: string

Path of the method's callback (where an emailed code or link is posted).