generateSignOutUri function
Generate the sign-out URI (End Session URI).
Implementation
Uri generateSignOutUri({
required String endSessionEndpoint,
required String clientId,
Uri? postLogoutRedirectUri,
}) {
var signOutUri = Uri.parse(endSessionEndpoint);
return addQueryParameters(signOutUri, {
'client_id': clientId,
'post_logout_redirect_uri': postLogoutRedirectUri?.toString()
});
}