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

Search Results for

    Method SignInAsync

    SignInAsync(bool, Func<SignInInfo, Task<TSessionToken>>)

    Signs in a user by creating a new session using the provided function and setting the session cookie to the session token returned by the function.

    Declaration
    public override Task<TSessionToken> SignInAsync(bool persistent, Func<SignInInfo, Task<TSessionToken>> createSessionFunc)
    Parameters
    Type Name Description
    bool persistent

    If set to true, the session will persist across browser or application restarts.

    Func<SignInInfo, Task<TSessionToken>> createSessionFunc

    A function that creates a new session token based on the provided SignInInfo. Any other parameters required for session creation (i.e. email, password, etc) should be captured by the function.

    Returns
    Type Description
    Task<TSessionToken>
    Overrides
    SessionContext<TSessionToken>.SignInAsync(bool, Func<SignInInfo, Task<TSessionToken>>)
    © Singulink. All rights reserved.