Skip to content

Commit

Permalink
fix: credentials give ttl
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jun 29, 2024
1 parent 324f6f0 commit 85b4709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/token/token.service.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ func (s *serviceImpl) CreateCredentials(userId string, role constant.Role) (*dto
credentials := &dto.Credentials{
AccessToken: accessToken,
RefreshToken: refreshToken,
ExpiresIn: s.jwtService.GetConfig().AccessTTL,
}

err = s.cache.SetValue(sessionKey(userId), credentials, s.jwtService.GetConfig().AccessTTL)
Expand Down

0 comments on commit 85b4709

Please sign in to comment.