MongocampLoginLink
Server 3.0 page of the mailed login link (AUTH_PASSWORDLESS=true, /login-link?token=) — put it on the page of paths.loginLink; it must be public.
vue
<!-- pages/login-link.vue -->
<template>
<MongocampLoginLink redirect-path="/secured" />
</template>- With
?token=it logs in once on mount (useMongocampAuth().loginWithLink({ token }), with a session whenAUTH_SESSIONSis on) and goes toredirectPathlikeMongocampLogin. The link and the code of the same mail are one token: the first use ends both. - A used or expired link (
400, code4403) ⇒ This login link is no longer valid + To the login; a disabled account (401,4013), switched off (404) and429have their own messages. Without a token: This page needs the link from the mail. In proxy mode a note.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
redirectPath | string | '/' | Where to go after the login. |
loginPath | string | module option loginPath | Where To the login goes. |
hideHeading | boolean | false | Hide the heading inside the card. |
header / footer slots as in MongocampLogin.