Skip to content

Commit 0e9da28

Browse files
committed
Simplify the API key parser code
1 parent 1a8f302 commit 0e9da28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/pkg/middlewares/api_key_auth_middleware.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func APIKeyAuth(logger telemetry.Logger, tracer telemetry.Tracer, userRepository
3030
ctxLogger.Error(stacktrace.Propagate(err, fmt.Sprintf("cannot load user with api key [%s]", apiKey)))
3131
return c.Next()
3232
}
33+
3334
c.Locals(ContextKeyAuthUserID, authUser)
3435
ctxLogger.Info(fmt.Sprintf("[%T] set successfully for user with ID [%s]", authUser, authUser.ID))
3536
return c.Next()

0 commit comments

Comments
 (0)