hello - I run offscript.io - we have a problem whe...
# support-questions
p
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
Hey @Pontus
Are you saying that the users are not getting the password reset email?
p
exactly!
r
Is your backend in serverless env?
Like aws lambda?
p
yes
r
Got it. And are you using our default email sending service? Or have you provided a callback to send them email yourself?
p
@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
Hey!
r
Hi @yuriy ! Nice to meet you too
y
I will figure that out and let you know the answer tomorrow morning
p
can u see the from the logs if I click request pass?
y
I am 90% sure that we are using your default service
r
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
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
Right.
y
Haven't touched this part of the codebase yet 🙂
r
Can I see the supertokens.init config code on the backend please?
I think I know what might be misconfigured. R
y
This is the entire backend config
r
Ah. Seems right to me.
Can you check logs for your email service to see if that’s getting called all the time?
y
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