buildLogoutUrl static method
Build logout URL
Implementation
static Future<String> buildLogoutUrl(AuthRequest authRequest) async {
String? secret = authRequest.clientSecret;
AuthResult result = await AuthClient.getCurrentUser();
if (result.user == null) {
return '';
} else {
return 'https://' +
Util.getHost(Authing.config) +
'/oidc/session/end?id_token_hint=' + (result.user?.idToken ?? '') + '&post_logout_redirect_uri=' + authRequest.redirectUrl;
}
}