Updated oauth authentication to be more robust and revoke tokens