Updated mechanism to detect OAuth2 provider login complete on the frontend