mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Co-authored-by: Kang Ming <kang.ming1996@gmail.com> Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
105 lines
2.0 KiB
TypeScript
105 lines
2.0 KiB
TypeScript
const config = {
|
|
auth: {
|
|
rate_limits: {
|
|
email: {
|
|
/**
|
|
* The number of emails that can be sent per hour using the inbuilt email server.
|
|
*/
|
|
inbuilt_smtp_per_hour: {
|
|
value: 3,
|
|
},
|
|
},
|
|
magic_link: {
|
|
/**
|
|
* Wait time between requests.
|
|
*/
|
|
period: {
|
|
value: 60,
|
|
unit: 'seconds',
|
|
},
|
|
/**
|
|
* How long before a Magic Link expires.
|
|
*/
|
|
validity: {
|
|
value: 1,
|
|
unit: 'hour',
|
|
},
|
|
},
|
|
otp: {
|
|
/**
|
|
* Wait time between requests.
|
|
*/
|
|
period: {
|
|
value: 60,
|
|
unit: 'seconds',
|
|
},
|
|
/**
|
|
* How long before an OTP expires.
|
|
*/
|
|
validity: {
|
|
value: 1,
|
|
unit: 'hour',
|
|
},
|
|
/**
|
|
* How many OTPs can be requested per hour.
|
|
*/
|
|
requests_per_hour: {
|
|
value: 30,
|
|
},
|
|
},
|
|
signup_confirmation: {
|
|
/**
|
|
* Wait time between requests.
|
|
*/
|
|
period: {
|
|
value: 60,
|
|
unit: 'seconds',
|
|
},
|
|
},
|
|
password_reset: {
|
|
/**
|
|
* Wait time between requests.
|
|
*/
|
|
period: {
|
|
value: 60,
|
|
unit: 'seconds',
|
|
},
|
|
},
|
|
verification: {
|
|
requests_per_hour: {
|
|
value: 360,
|
|
},
|
|
requests_burst: {
|
|
value: 30,
|
|
},
|
|
},
|
|
token_refresh: {
|
|
requests_per_hour: {
|
|
value: 1800,
|
|
},
|
|
requests_burst: {
|
|
value: 30,
|
|
},
|
|
},
|
|
mfa: {
|
|
requests_per_hour: {
|
|
value: 15,
|
|
},
|
|
requests_burst: {
|
|
value: 30,
|
|
},
|
|
},
|
|
anonymous_signin: {
|
|
requests_per_hour: {
|
|
value: 30,
|
|
},
|
|
requests_burst: {
|
|
value: 30,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
} as const
|
|
|
|
export default config
|