UPDATE: Auth module, User module
Some checks failed
Build and Release / release (push) Failing after 1m25s
Some checks failed
Build and Release / release (push) Failing after 1m25s
This commit is contained in:
13
pkg/constants/time.go
Normal file
13
pkg/constants/time.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package constants
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
TokenCooldownDuration = 1 * time.Minute
|
||||
TokenExpirationDuration = 20 * time.Minute
|
||||
NormalCacheDuration = 15 * time.Minute
|
||||
ListCacheDuration = 10 * time.Minute
|
||||
AccessTokenDuration = 15 * time.Minute
|
||||
RefreshTokenDuration = 7 * 24 * time.Hour
|
||||
TokenVerifiedDuration = 10 * time.Minute
|
||||
)
|
||||
Reference in New Issue
Block a user