Added window and webview to _auth method