Note that localhost needs to be added to valid redirect URIs.