use of io.deephaven.web.shared.data.ConnectToken in project deephaven-core by deephaven.
the class IdeConnection method getAuthTokenPromiseSupplier.
private static AuthTokenPromiseSupplier getAuthTokenPromiseSupplier(IdeConnectionOptions options) {
ConnectToken token = null;
if (options != null && options.authToken != null) {
token = new ConnectToken();
token.setBytes(atob(options.authToken).getBytes(StandardCharsets.UTF_8));
}
return AuthTokenPromiseSupplier.oneShot(token);
}
Aggregations