function _M.process()

in scripts/lua/oauth/mock.lua [21:33]


function _M.process (red, token)
  if token == "test" then
    local goodResult = [[
      {
       "email":"test@test.com"
      }
    ]]
    red:set('oauth:providers:mock:tokens:test', goodResult)
    return cjson.encode(goodResult)
  else
    return nil
  end
end