Clean up oauth code