Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Oct 20, 2023
1 parent ebb0b06 commit 1fa3865
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func (s *ApiServer) SessionRefresh(ctx context.Context, in *api.SessionRefreshRe
//session := &api.Session{Created: false, Token: token, RefreshToken: refreshToken}

token, tokenExp := generateToken(s.config, tokenId, userIDStr, username, useVars)
refreshToken, _ := generateRefreshToken(s.config, tokenId, userIDStr, username, useVars)
refreshToken, refreshTokenExp := generateRefreshToken(s.config, tokenId, userIDStr, username, useVars)
s.sessionCache.Add(userID, tokenExp, tokenId, refreshTokenExp, tokenId)
session := &api.Session{Created: false, Token: token, RefreshToken: refreshToken}

// After hook.
Expand Down

0 comments on commit 1fa3865

Please sign in to comment.