pub fn v2_logout(&self) -> OAuthReq<Output> {
        let mut url = self.get_or_else(OAuthCredential::LogoutURL)?;
        if !url.ends_with('?') {
            url.push('?');
        }
        if let Some(redirect) = self.get(OAuthCredential::PostLogoutRedirectURI) {
            url.push_str("post_logout_redirect_uri=");
            url.push_str(redirect.as_str());
        } else {
            let redirect_uri = self.get_or_else(OAuthCredential::RedirectURI)?;
            url.push_str("post_logout_redirect_uri=");
            url.push_str(redirect_uri.as_str());
        }
        webbrowser::open(url.as_str()).map_err(GraphFailure::from)
    }
/// Sign the user out using the OneDrive v2.0 endpoint.
///
/// # Example
/// ```rust,ignore
/// use graph_oauth::oauth::OAuth;
/// let mut oauth = OAuth::new();
///
/// oauth.v2_logout().unwrap();
/// ```
Sign the user out using the OneDrive v2.0 endpoint.
Sign the user out using the OneDrive v2 . 0 endpoint .
pub fn v2_logout(&self) -> OAuthReq<Output> {
        let mut url = self.get_or_else(OAuthCredential::LogoutURL)?;
        if !url.ends_with('?') {
            url.push('?');
        }
        if let Some(redirect) = self.get(OAuthCredential::PostLogoutRedirectURI) {
            url.push_str("post_logout_redirect_uri=");
            url.push_str(redirect.as_str());
        } else {
            let redirect_uri = self.get_or_else(OAuthCredential::RedirectURI)?;
            url.push_str("post_logout_redirect_uri=");
            url.push_str(redirect_uri.as_str());
        }
        webbrowser::open(url.as_str()).map_err(GraphFailure::from)
    }
pub fn v2_logout ( & self ) -> OAuthReq < Output > { let mut url = self . get_or_else ( OAuthCredential :: LogoutURL ) ? ; if ! url . ends_with ( '?' ) { url . push ( '?' ) ; } if let Some ( redirect ) = self . get ( OAuthCredential :: PostLogoutRedirectURI ) { url . push_str ( " " ) ; url . push_str ( redirect . as_str ( ) ) ; } else { let redirect_uri = self . get_or_else ( OAuthCredential :: RedirectURI ) ? ; url . push_str ( " " ) ; url . push_str ( redirect_uri . as_str ( ) ) ; } webbrowser :: open ( url . as_str ( ) ) . map_err ( GraphFailure :: from ) }
Sign the user out using the OneDrive v2.0 endpoint.
Sign the user out using the OneDrive v2 . 0 endpoint .
&self
&self
example
```rust,ignore
use graph_oauth::oauth::OAuth;
let mut oauth = OAuth::new().


` ` ` rust ignore use graph_oauth :: oauth :: OAuth ; let mut oauth = OAuth :: new () .