anchor.diff:  process_auth_redirect(ReqData, State) ->
       case openidc:process_auth_redirect(ReqData, State) of
           {ok, Res}    -> {true, wrq:set_resp_body(Res, ReqData), State};
  -        {error, Msg} -> {{halt,403}, wrq:set_resp_body(Msg, ReqData), State}
  +        {error, Msg} ->
  +            Error = "{\"error\": \"" ++ Msg ++ "\"}",
  +            {{halt,403}, wrq:set_resp_body(Error, ReqData), State}
       end.
   
   
  
positive.code:     {struct, Image} = proplists:get_value(<<"image">>, Data),
      URL = proplists:get_value(<<"url">>, Image),
  
      % RefreshT = list_to_binary(string:substr(binary_to_list(RefToken), 3)),
      mochijson2:encode({
          struct,[
              {username, ID},
  
negative.code:     case get_user_by_name(Username) of
          {error, Msg} -> {error, Msg};
          {ok, JSON}   ->
              UserJSON = lib_json:replace_field(JSON, "access_token", AccToken),
              Update   = lib_json:set_attr(doc, UserJSON),
              case api_help:update_doc(?INDEX, "user", Username, Update) of
                  {ok, NewJSON}         -> {ok, NewJSON};
                  {error, {Code, Body}} -> {error, api_help:generate_error(Body, Code)}
              end
      end.
  
  
  