diff --git a/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl b/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl index 736fb28b9..0926bf697 100644 --- a/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl +++ b/apps/emqx_auth_jwt/src/emqx_auth_jwt_app.erl @@ -33,11 +33,10 @@ start(_Type, _Args) -> {ok, Pid} = start_auth_server(jwks_svr_options()), ok = emqx_auth_jwt:register_metrics(), - AuthEnv0 = auth_env(), AuthEnv1 = AuthEnv0#{pid => Pid}, - emqx:hook('client.authenticate', {emqx_auth_jwt, check, [AuthEnv1]}), + _ = emqx:hook('client.authenticate', {emqx_auth_jwt, check, [AuthEnv1]}), {ok, Sup, AuthEnv1}. stop(AuthEnv) ->