HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method FindAsync

    FindAsync(string, string, CancellationToken)

    Finds the device waiting with a code typed by a signed-in user and returns its details, or null if no device is waiting with the code or the input cannot be a code.

    Declaration
    public Task<PendingDeviceLink?> FindAsync(string code, string approverUserId, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string code

    The code as typed by the user (see Normalize(string)).

    string approverUserId

    The ID of the signed-in user who typed the code.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task<PendingDeviceLink>
    Exceptions
    Type Condition
    TooManyRequestsApiException

    The user entered too many wrong codes (DeviceLinkTooManyWrongCodes).

    FindAsync(string, ISessionToken, CancellationToken)

    Finds the device waiting with a code typed by a signed-in user and returns its details, or null if no device is waiting with the code or the input cannot be a code.

    Declaration
    public Task<PendingDeviceLink?> FindAsync(string code, ISessionToken approver, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string code

    The code as typed by the user (see Normalize(string)).

    ISessionToken approver

    The session token of the signed-in user who typed the code, whose UserId identifies them.

    CancellationToken cancellationToken

    A token to cancel the operation.

    Returns
    Type Description
    Task<PendingDeviceLink>
    Exceptions
    Type Condition
    TooManyRequestsApiException

    The user entered too many wrong codes (DeviceLinkTooManyWrongCodes).

    © Singulink. All rights reserved.