fix parse cookie by oauth2