detect oauth completed by cookie