revokeRefreshTokens function
Implementation
Future<void> revokeRefreshTokens(String idToken) async {
final c = Completer<String>();
final receivePort = _createReceivePort(c);
try {
final Pointer<Int8> pIdToken =
idToken.toNativeUtf8(allocator: malloc).cast<Int8>();
try {
nl.createUser(receivePort.sendPort.nativePort, pIdToken);
} finally {
malloc.free(pIdToken);
}
await c.future;
} finally {
receivePort.close();
}
}