fix oauth session_helper with method calls and comparison