Open
Description
General info
- I checked the troubleshooting page for similar problems
What is your question?
Supabase hard caps the smtp mail delivery to 1 per second:

How should this be handled using the gotrue module?
I get the exception: Supabase failed: over_email_send_rate_limit with message: For security purposes, you can only request this after 0 seconds., code: OverEmailSendRateLimit
Relevant log output (optional)
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jan-tennert commentedon Feb 9, 2025
You can check for the
OverEmailSendRateLimit
AuthErrorCode
:The generic
RestException
subclasses were superseded by theAuthRestException
s:supabase-kt/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/Auth.kt
Line 100 in 4f06243
tschuehly commentedon Feb 10, 2025
Hey @jan-tennert,
I already have an Exception Handler, but I would have to handle the retry mechanism manually in a generic way.
https://github.com/tschuehly/htmx-supabase-spring-boot-starter/blob/master/src%2Fmain%2Fkotlin%2Fde%2Ftschuehly%2Fhtmx%2Fspring%2Fsupabase%2Fauth%2Fservice%2FSupabaseUserService.kt#L249
I think it could be a good idea to maybe introduce a queue or something similar?
jan-tennert commentedon Feb 10, 2025
Do you mean generally in this repo or implementation wise?
For a web server, wouldn't it be better to redirect the error to the client for it to handle, since the interval could be longer than a second?