Skip to content

Commit

Permalink
Added Renew Tracelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju-Wiluis William Rodriguez Hernandez committed Sep 23, 2024
1 parent f824136 commit a61ec48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ func GetDefaultTTL(orgId, userId string) time.Duration {

func RenewToken(token string) (string, error) {
data, _ := ValidateToken(token)
println("Data en el Renew:", data)
splited := strings.Split(data, ",")
fmt.Printf("Array en el Renew: %v", splited)
DeleteToken(token, splited[1])
return GenerateToken(splited[0], splited[1])
}
Expand Down

0 comments on commit a61ec48

Please sign in to comment.