You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lately we noticed some warnings within Supabase advisor suggesting to set the OTP expiry less than an hour and another warning about the OTP length.
After checking GoTrue docs i found these variables :
MAILER_OTP_EXP - number
Controls the duration an email link or otp is valid for.
SMS_OTP_EXP - number
Controls the duration an sms otp is valid for.
SMS_OTP_LENGTH - number
Controls the number of digits of the sms otp sent.
i added the above variables within GoTrue docker service environment.
inspecting GoTrue running container environment variables to check if the configuration is applied results : GOTRUE_MAILER_OTP_EXP=3600, GOTRUE_SMS_OTP_LENGTH=8
The problem is Supabase dashboard still showing the default OTP configuration (EXP=86400, LENGTH=6), alongside the warnings.
My question is it possible to tweak OTP configuration within docker self hosted Supabase? if so i will appreciate any guidance to figure out how.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Lately we noticed some warnings within Supabase advisor suggesting to set the OTP expiry less than an hour and another warning about the OTP length.
After checking GoTrue docs i found these variables :
i added the above variables within GoTrue docker service environment.
inspecting GoTrue running container environment variables to check if the configuration is applied results :
GOTRUE_MAILER_OTP_EXP=3600, GOTRUE_SMS_OTP_LENGTH=8
The problem is Supabase dashboard still showing the default OTP configuration (EXP=86400, LENGTH=6), alongside the warnings.
My question is it possible to tweak OTP configuration within docker self hosted Supabase? if so i will appreciate any guidance to figure out how.
Beta Was this translation helpful? Give feedback.
All reactions