Skip to content

Commit a596b5c

Browse files
danilovidavlllo
authored andcommitted
fix(auth-center): remove debug log from AccessTokenFromContext
1 parent 25da266 commit a596b5c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

auth-center/pkg/tokens/access_token.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ func NewAccessToken(user model.User, ttl time.Duration) *AccessToken {
4141
func AccessTokenFromContext(ctx context.Context, key []byte) (*AccessToken, error) {
4242
md, ok := metadata.FromIncomingContext(ctx)
4343
auth := md.Get(AuthorizationKey)
44-
45-
fmt.Println("get auth", auth, ok, md)
46-
4744
if !ok || len(auth) == 0 {
4845
return nil, errors.New("no authorization token provided")
4946
}

0 commit comments

Comments
 (0)