https://supertokens.com/ logo
Title
p

productdevbook

01/23/2023, 4:54 AM
ts
console.log('Sending email', input)
console.log nothing comes up after registration
r

rp

01/23/2023, 4:55 AM
Hey.
Do you see the screen for sending an email post login?
p

productdevbook

01/23/2023, 4:56 AM
Doesn't the e-mail verification process work immediately after registration?
r

rp

01/23/2023, 4:57 AM
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

productdevbook

01/23/2023, 4:58 AM
this is not in the logs
r

rp

01/23/2023, 4:58 AM
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

rp

01/23/2023, 5:00 AM
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

productdevbook

01/23/2023, 5:01 AM
My auth knowledge is pretty poor. Glad you built this library. Now understand thank you
r

rp

01/23/2023, 5:01 AM
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

productdevbook

01/23/2023, 5:11 AM
main.ts, vue
import EmailVerification from 'supertokens-web-js/recipe/emailverification'
ts
  recipeList: [
    EmailVerification.init(),
    ThirdPartyEmailPassword.init(),
    Session.init({
      onHandleEvent: (event) => {
        if (event.action === 'UNAUTHORISED' || event.action === 'SIGN_OUT')
          window.location.href = '/'
      },
    }),
  ],
dont working
r

rp

01/23/2023, 5:17 AM
you need to set it to mode required on the frontend too - as mentioned in our docs
p

productdevbook

01/23/2023, 5:18 AM
we vue 3 only main.ts this used
r

rp

01/23/2023, 5:19 AM
the doc says to edit
/components/Supertokens.tsx
and
/main.ts
.
p

productdevbook

01/23/2023, 6:05 AM
we only have one place, login vs everything on it up only
main.ts
r

rp

01/23/2023, 6:05 AM
So ur building custom UI?
p

productdevbook

01/23/2023, 6:05 AM
yes
r

rp

01/23/2023, 6:06 AM
Then if you see the custom ui docs, you will see how to call the email verification api which sends the email
p

productdevbook

01/23/2023, 6:08 AM
The documentation is a bit complicated, I'm really different from everywhere else. okay thank you
r

rp

01/23/2023, 6:08 AM
You were seeing the pre built ui docs. But you are building custom ui.
p

productdevbook

01/23/2023, 6:13 AM
🚀
r

rp

01/23/2023, 6:13 AM
Nice.