jaitaiwan
07/26/2022, 11:56 AMilbert
07/26/2022, 11:59 AMilbert
07/26/2022, 12:39 PMupdate
function and then calling sendMagicLinkEmail
with shouldCreateUser=false
could work?jaitaiwan
07/26/2022, 12:54 PMgaryaustin
07/26/2022, 12:57 PMjaitaiwan
07/26/2022, 2:17 PMilbert
07/26/2022, 5:39 PMabaum
07/27/2022, 8:03 PMREFRESH_TOKEN_REUSE_INTERVAL
and that it only applies if REFRESH_TOKEN_ROTATION_ENABLED
is true. I'm not on a self-hosted server, so is it safe to assume that REFRESH_TOKEN_ROTATION_ENABLED
is defaulted to true for me?
as a follow up, I was a bit confused by the docs that said:
The reuse interval for a refresh token allows for exchanging the refresh token multiple times during the interval to support concurrency or offline issues.
my understanding was (loosely) that refresh tokens would not expire, and would only be revoked on logout or if the client attempts to use one. would this setting primarily be helpful if there were multiple separate attempts to refresh using the same token? or is there a different edge case that this is addressing? just trying to wrap my head around what it does and if we would want it enabled (I assume yes).
relevant docs that I found are here, there might be others that I'm missing: https://supabase.com/docs/reference/tools/reference-auth
thanks!ilbert
07/29/2022, 7:25 AMupdate
function I'm getting this error from js client:
error: { message: 'Error sending change email', status: 500 }
and this is the log in gotrue:
level=error msg="500: Error sending change email" component=api error="gomail: could not send email 1: gomail: invalid address \"\": mail: no address" method=PUT path=/user referer= remote_addr="192.168.123.5:37394" request_id=507417c7-139d-4ebd-ac2d-979cd6349976
But the email confirmation sometimes arrives 🤔
I can confirm that the SMTP server is working (I'm using Mailgun), because if I try to signup with email/password, it doesn't give any errorilbert
07/29/2022, 7:31 AMhttp://localhost:8000/auth/v1/verify?token=muMSGs3Z9f0N98BAHpc1MQ&type=email_change&redirect_to=http://localhost:3000
gives me error: error_code=404&error_description=User+not+found
ilbert
07/29/2022, 8:06 AMGOTRUE_MAILER_SECURE_EMAIL_CHANGE_ENABLED: "false"
, which disables double verification (verifies both old, which in my case does not exist, and new email). The problem is that this env variable is not documented anywhere, neither at https://supabase.com/docs/reference/tools/reference-auth nor at https://github.com/supabase/gotrue. I found it only at https://github.com/supabase/gotrue/blob/master/example.env#L38ilbert
07/29/2022, 9:41 AMtrebor
08/03/2022, 5:18 PMtrebor
08/03/2022, 8:24 PMuser
08/05/2022, 4:50 AMuser
08/05/2022, 4:50 AMuser
08/05/2022, 4:50 AMjensen
08/08/2022, 12:05 AMjensen
08/08/2022, 12:06 AMYeehawlerz101
08/09/2022, 2:18 PM(using the js version btw)
Tadasajon
08/09/2022, 2:24 PMmadsbuch
08/09/2022, 3:11 PMsignIn
function). Is there anycase where this should happen?stojan
08/09/2022, 9:01 PMstojan
08/09/2022, 9:02 PMstojan
08/09/2022, 9:03 PMkasvith
08/10/2022, 6:27 PMgaryaustin
08/10/2022, 6:42 PMkasvith
08/10/2022, 6:48 PMgaryaustin
08/10/2022, 6:50 PMOlyno
08/11/2022, 1:14 PM