generateSignOutUri function

Uri generateSignOutUri({
  1. required String endSessionEndpoint,
  2. required String idToken,
  3. Uri? postLogoutRedirectUri,
})

Implementation

Uri generateSignOutUri({
  required String endSessionEndpoint,
  required String idToken,
  Uri? postLogoutRedirectUri,
}) {
  var signOutUri = Uri.parse(endSessionEndpoint);

  return addQueryParameters(signOutUri, {
    'id_token_hint': idToken,
    'post_logout_redirect_uri': postLogoutRedirectUri?.toString()
  });
}