forked from ebhomengo/niki
1
0
Fork 0
niki/config/constant.go

18 lines
430 B
Go
Raw Normal View History

package config
import "time"
const (
OtpChars = "0123456789"
OtpExpireTime time.Duration = 2 * 60 * 1000 * 1000000 // 2 minutes
AccessTokenSubject = "ac"
RefreshTokenSubject = "rt"
AccessTokenExpireDuration = time.Hour * 24
RefreshTokenExpireDuration = time.Hour * 24 * 7
AuthMiddlewareContextKey = "claims"
BcryptCost = 3
NotificationTimeout = time.Second * 10
)