I was able to “Add Authentication to Your Xamarin App with OpenID Connect” but there is no example on how to logout. Does someone has the solution on this? Thanks in advance.
We can implement the logout like this.
try
{
var identityToken = await SecureStorage.GetAsync(Constants.IDENTITY_TOKEN);
var request = new LogoutRequest()
{
IdTokenHint = identityToken
};
var result = await _client.LogoutAsync(request);`
}
catch (Exception ex)`
{
System.Diagnostics.Debug.WriteLine(ex.Message);
}