2024-01-14 15:53:37 +00:00
|
|
|
package config
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
const (
|
2024-01-15 10:33:24 +00:00
|
|
|
OtpChars = "0123456789"
|
|
|
|
OtpExpireTime time.Duration = 2 * 60 * 1000 * 1000000 // 2 minutes
|
2024-01-14 15:53:37 +00:00
|
|
|
|
|
|
|
AccessTokenSubject = "ac"
|
|
|
|
RefreshTokenSubject = "rt"
|
|
|
|
AccessTokenExpireDuration = time.Hour * 24
|
|
|
|
RefreshTokenExpireDuration = time.Hour * 24 * 7
|
|
|
|
AuthMiddlewareContextKey = "claims"
|
2024-01-19 16:56:11 +00:00
|
|
|
BcryptCost = 3
|
2024-08-16 17:37:37 +00:00
|
|
|
|
|
|
|
NotificationTimeout = time.Second * 10
|
2024-01-14 15:53:37 +00:00
|
|
|
)
|