• Patrick Baldwin

    (@patrelentlesstechnologycom)


    It would be really nice to have access to the REST Request if I add a filter to the ‘jwt_auth_token_before_sign’ hook. I would like to store some additional information in the ‘data’ field of the token that’s coming with the Request but I can’t get access to it.

    In class-jwt-auth-public.php line 154 you could just add it to the filter:

    $token = JWT::encode(apply_filters(‘jwt_auth_token_before_sign’, $token, $user, $request), $secret_key);

    Think this is possible?

  • The topic ‘Add REST Request to jwt_auth_token_before_sign filter’ is closed to new replies.