You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
432 B
Go

package auth
type Config struct {
SkipPaths []string
TokenKey string
}
func DefaultConfig() *Config {
return &Config{
SkipPaths: []string{
"/api/auth/login",
"/api/auth/register",
"/api/auth/image-captcha",
"/api/auth/sms-captcha",
"/api/auth/login/sms",
"/api/auth/login/password",
"/api/auth/captcha/sms",
"/api/auth/verify-image",
"/api/auth/verify-sms",
},
TokenKey: "Authorization",
}
}