mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-06 13:14:24 +08:00
static configs
This commit is contained in:
parent
59cf51a659
commit
6a91bed0bb
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ func CreateJWT(macaddress string, network string) (response string, err error) {
|
|||
}
|
||||
|
||||
func CreateUserJWT(username string, networks []string, isadmin bool) (response string, err error) {
|
||||
expirationTime := time.Now().Add(1 * time.Minute)
|
||||
expirationTime := time.Now().Add(60 * 24 * time.Minute)
|
||||
claims := &models.UserClaims{
|
||||
UserName: username,
|
||||
Networks: networks,
|
||||
|
|
Loading…
Add table
Reference in a new issue