```ts console.log('Sending email', input) ``` cons...
# support-questions
p
Copy code
ts
console.log('Sending email', input)
console.log nothing comes up after registration
r
Hey.
Do you see the screen for sending an email post login?
p
Doesn't the e-mail verification process work immediately after registration?
r
Well, you need to call the send email API.
Please see our docs for more details
If you have any specific question, I’d be happy to help.
p
this is not in the logs
r
You need to call the api. Make sure you follow our docs pleae.
Or see how it’s setup in one of our example apps.
interesting why client same setting add ?
r
Yup. It needs to be on the client too. So that the frontend knows to show that UI
And that UI calls the api to send the email
p
My auth knowledge is pretty poor. Glad you built this library. Now understand thank you
r
That being said, it’s not a security issue cause on the backend, you made it required too, which enforces that the session contains the claim for the email being verified.
p
main.ts, vue
import EmailVerification from 'supertokens-web-js/recipe/emailverification'
Copy code
ts
  recipeList: [
    EmailVerification.init(),
    ThirdPartyEmailPassword.init(),
    Session.init({
      onHandleEvent: (event) => {
        if (event.action === 'UNAUTHORISED' || event.action === 'SIGN_OUT')
          window.location.href = '/'
      },
    }),
  ],
dont working
r
you need to set it to mode required on the frontend too - as mentioned in our docs
p
we vue 3 only main.ts this used
r
the doc says to edit
/components/Supertokens.tsx
and
/main.ts
.
p
we only have one place, login vs everything on it up only
main.ts
r
So ur building custom UI?
p
yes
r
Then if you see the custom ui docs, you will see how to call the email verification api which sends the email
p
The documentation is a bit complicated, I'm really different from everywhere else. okay thank you
r
You were seeing the pre built ui docs. But you are building custom ui.
p
🚀
r
Nice.
2 Views