https://supertokens.com/ logo
#support-questions
Title
# support-questions
p

Pontus

04/19/2022, 4:11 PM
hello - I run offscript.io - we have a problem where our users don't get the setup a new password whne the users request so
r

rp

04/19/2022, 4:12 PM
Hey @Pontus
Are you saying that the users are not getting the password reset email?
p

Pontus

04/19/2022, 4:13 PM
exactly!
r

rp

04/19/2022, 4:14 PM
Is your backend in serverless env?
Like aws lambda?
p

Pontus

04/19/2022, 4:14 PM
yes
r

rp

04/19/2022, 4:15 PM
Got it. And are you using our default email sending service? Or have you provided a callback to send them email yourself?
p

Pontus

04/19/2022, 4:16 PM
@yuriy is here now aas well
he is our new cto
so we have some info that is currently not in anyones head
hehe
y

yuriy

04/19/2022, 4:16 PM
Hey!
r

rp

04/19/2022, 4:16 PM
Hi @yuriy ! Nice to meet you too
y

yuriy

04/19/2022, 4:17 PM
I will figure that out and let you know the answer tomorrow morning
p

Pontus

04/19/2022, 4:17 PM
can u see the from the logs if I click request pass?
y

yuriy

04/19/2022, 4:17 PM
I am 90% sure that we are using your default service
r

rp

04/19/2022, 4:17 PM
Sending the email is done from the backend SDK side. And not the core. So it’s all on your side
Ok. Got it
What’s the supertokens.init on the backend?
I mean the config you have provided for it
Can I see that?
y

yuriy

04/19/2022, 4:19 PM
Ah, sorry. It seems that we have our own functionality for that
resetPasswordUsingTokenFeature: { createAndSendCustomEmail: async (user, passwordResetURLWithToken) => { const { id } = user await fetchApi(
${websiteDomain}/api/users/email
, { action: "reset", user_id: id, url: passwordResetURLWithToken, }) }, },
r

rp

04/19/2022, 4:20 PM
Right.
y

yuriy

04/19/2022, 4:20 PM
Haven't touched this part of the codebase yet 🙂
r

rp

04/19/2022, 4:20 PM
Can I see the supertokens.init config code on the backend please?
I think I know what might be misconfigured. R
y

yuriy

04/19/2022, 4:22 PM
This is the entire backend config
r

rp

04/19/2022, 4:23 PM
Ah. Seems right to me.
Can you check logs for your email service to see if that’s getting called all the time?
y

yuriy

04/19/2022, 4:28 PM
Yes, I will do that tomorrow and get back to you. Unfortunately, I need to run now. Thanks a lot for your help 🙂
Thanks a lot for your help, @rp! We have figured out that the emails are getting through with supertokens, so the issue is probably on our emails service's side
I think we can park this case for now 🙂
2 Views