Skip to content

MongocampVerifyEmail ​

Server 3.0 page of the verification link (/verify-email?token= — put it on the page of paths.verifyEmail; it must be public).

vue
<!-- pages/verify-email.vue -->
<template>
  <MongocampVerifyEmail />
</template>
  • With ?token= it confirms the address once on mount (useMongocampAuth().verifyEmail) and offers Log in; emits verified.
  • Without a token, or when the link is used or expired (400, code 4403 — This link is no longer valid), it shows a form to mail a new link (requestEmailVerification, always 202: if the address waits for a confirmation, a new mail is on its way).
  • The routes switched off (404) ⇒ E-mail confirmation is not switched on on this server.; 429 ⇒ the wait. In proxy mode a note.

Props ​

PropTypeDefaultDescription
loginPathstringmodule option loginPathWhere Log in goes.
hideHeadingbooleanfalseHide the heading inside the card.

header / footer slots as in MongocampLogin.

Released under the MIT License.