Skip to content

Commit

Permalink
feat: add auth test OTP configuration support
Browse files Browse the repository at this point in the history
  • Loading branch information
hf committed Aug 31, 2023
1 parent 8a68f11 commit 28b62ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ EOF
"GOTRUE_SMS_OTP_EXP=6000",
"GOTRUE_SMS_OTP_LENGTH=6",
"GOTRUE_SMS_TEMPLATE=Your code is {{ .Code }}",
fmt.Sprintf("GOTRUE_SMS_TEST_OTP=%v", utils.Config.Auth.Sms.TestOTP),

fmt.Sprintf("GOTRUE_SECURITY_REFRESH_TOKEN_ROTATION_ENABLED=%v", utils.Config.Auth.EnableRefreshTokenRotation),
fmt.Sprintf("GOTRUE_SECURITY_REFRESH_TOKEN_REUSE_INTERVAL=%v", utils.Config.Auth.RefreshTokenReuseInterval),
Expand Down
1 change: 1 addition & 0 deletions internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ type (
Messagebird messagebirdConfig `toml:"messagebird" mapstructure:"messagebird"`
Textlocal textlocalConfig `toml:"textlocal" mapstructure:"textlocal"`
Vonage vonageConfig `toml:"vonage" mapstructure:"vonage"`
TestOTP string `toml:"test_otp"`
}

twilioConfig struct {
Expand Down

0 comments on commit 28b62ed

Please sign in to comment.