Skip to content

Commit

Permalink
Update token expires
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Jan 9, 2025
1 parent b731b69 commit 8e1f63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (g *Generator) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
rw.Header().Set("Content-Type", "application/json")

now := time.Now()
expiresIn := 60
expiresIn := 3600

t.ExpiresAt = now.Add((time.Duration(expiresIn) + 10) * time.Second)

Expand Down

0 comments on commit 8e1f63b

Please sign in to comment.