logout method
for web it invokes logoutRedirectUri
timeout
- for non web logout
Implementation
Future<void> logout({
Dio? dio,
bool macosLogoutWithoutRedirection = true,
Duration timeout = const Duration(seconds: 30),
}) async {
if (authState == null) {
kindeDebugPrint(methodName: "logout", message: "AuthState is null.");
return;
}
if (kIsWeb) {
await _handleWebLogout();
} else {
await _handleNonWebLogout(
dio: dio,
macosLogoutWithoutRedirection: macosLogoutWithoutRedirection,
timeout: timeout
);
}
await _commonLogoutCleanup();
}