def METHOD_NAME(rf, staff_user, settings):
    payload = jwt_user_payload(
        staff_user,
        JWT_ACCESS_TYPE,
        settings.JWT_TTL_ACCESS,
        token_owner="mirumee.custom.auth.plugin",
    )
    token = jwt_encode(payload)
    request = rf.request(HTTP_AUTHORIZATION_BEARER=f"{token}")
    backend = JSONWebTokenBackend()
    assert backend.authenticate(request) is None