Search in sources :

Example 1 with ConnectToken

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);
}
Also used : ConnectToken(io.deephaven.web.shared.data.ConnectToken)

Aggregations

ConnectToken (io.deephaven.web.shared.data.ConnectToken)1