Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Stanga committed Oct 10, 2024
1 parent 8432a21 commit 6568d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/auth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (s *Service) RefreshToken(ctx context.Context, r *pb.RefreshTokenRequest) (

// check if refresh token is in db, if it's valid and if the access uuid matches the one in the jwt
rt, err := s.db.GetRefreshToken(nil, tkn.ID)
if err != nil || rt.AccessTokenID != tkn.AccessTokenID || rt.ExpiresAt.Before(time.Now()) {
if err == nil || rt.AccessTokenID != tkn.AccessTokenID || rt.ExpiresAt.Before(time.Now()) {
return nil, er.NotAuthenticatedf("invalid refresh token")
}

Expand Down

0 comments on commit 6568d21

Please sign in to comment.