B-Arts DocumentationIndice generale

BGoogleSocialAuth - Esempi

BGoogleSocialAuth google = new(clientId, clientSecret, callbackUrl);
string url = google.GetUrlAuthentication(); // openid profile email

BSocialToken? token = await google.GetToken(code);
BSocialUser? user = token == null ? null : await google.GetUser(token.AccessToken);

LogOut invia il token all'endpoint di revoca. Il metodo restituisce true se la richiesta non genera eccezioni, senza analizzare lo status HTTP.