Skip to content

Commit

Permalink
dashboard: set token active to 1 year
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto authored and wuriyanto committed Sep 1, 2024
1 parent 37c19cd commit da8ee47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dashboard/handler/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ func (h *DashboardHTTPHandler) Login(jwtService utils.JwtService) http.HandlerFu
claim.User.Email = h.dashboardUsername

// 1 year
// jwtString, err := jwtService.Generate(&claim, time.Hour*8766)
jwtString, err := jwtService.Generate(&claim, time.Second*10)
jwtString, err := jwtService.Generate(&claim, time.Hour*8766)
if err != nil {
shared.BuildJSONResponse(resp, shared.Response[shared.EmptyJSON]{
Success: false,
Expand Down

0 comments on commit da8ee47

Please sign in to comment.