anchor.diff:                  {error, _} = Error1 -> throw(Error1)
               end
       end,
  -    Consumer = case utils:null_to_undefined(maps:get(<<"consumerToken">>, Data, undefined)) of
  -        undefined ->
  +    Consumer = case maps:find(<<"consumerToken">>, Data) of
  +        error ->
  +            Auth#auth.subject;
  +        {ok, null} ->
               undefined;
  -        ConsumerToken ->
  +        {ok, ConsumerToken} ->
               case token_auth:verify_consumer_token(ConsumerToken, #auth_ctx{ip = PeerIp, interface = Interface}) of
                   {ok, Csm} -> Csm;
                   {error, _} = Error2 -> throw(Error2)
  
positive.code:             Error
      end;
  
  create(#el_req{gri = #gri{id = undefined, aspect = verify_invite_token}, data = Data}) ->
      Token = maps:get(<<"token">>, Data),
      ExpType = maps:get(<<"expectedInviteType">>, Data, any),
      AuthCtx = build_token_verification_auth_ctx(Data),
      case token_auth:verify_invite_token(Token, ExpType, AuthCtx) of
          {ok, #auth{subject = Subject, caveats = Caveats}} ->
              {ok, value, #{
  
negative.code:     validate_subject_and_service(Type, Subject, Caveats),
      {ok, value, tokens:confine(Token, Caveats)};
  
  create(#el_req{auth = Auth, gri = #gri{id = undefined, aspect = verify_access_token}, data = Data}) ->
      Token = maps:get(<<"token">>, Data),
      AuthCtx = build_token_verification_auth_ctx(Auth, Data),
      case token_auth:verify_access_token(Token, AuthCtx) of
          {ok, #auth{subject = Subject, caveats = Caveats}} ->
              {ok, value, #{
  