Skip to content

Commit

Permalink
chore: remove debug codes
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Aug 6, 2023
1 parent 01ec590 commit e855f8c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/v2/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package v2

import (
"context"
"fmt"

"github.com/boojack/slash/api/auth"
apiv2pb "github.com/boojack/slash/proto/gen/api/v2"
Expand Down Expand Up @@ -108,8 +107,6 @@ func (s *UserService) CreateUserAccessToken(ctx context.Context, request *apiv2p
return nil, status.Errorf(codes.NotFound, "user not found")
}

fmt.Println(request.UserAccessToken)

accessToken, err := auth.GenerateAccessToken(user.Email, user.ID, request.UserAccessToken.ExpiresAt.AsTime(), s.Secret)
if err != nil {
return nil, status.Errorf(codes.Internal, "failed to generate access token: %v", err)
Expand Down

0 comments on commit e855f8c

Please sign in to comment.