forked from ebhomengo/niki
16 lines
383 B
Go
16 lines
383 B
Go
|
package config
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
const (
|
||
|
OptChars = "0123456789"
|
||
|
OtpExpireTime time.Duration = 120000 // 2 minutes
|
||
|
|
||
|
JwtSignKey = "jwt_secret"
|
||
|
AccessTokenSubject = "ac"
|
||
|
RefreshTokenSubject = "rt"
|
||
|
AccessTokenExpireDuration = time.Hour * 24
|
||
|
RefreshTokenExpireDuration = time.Hour * 24 * 7
|
||
|
AuthMiddlewareContextKey = "claims"
|
||
|
)
|