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

Search Results for

    Method GetRequiredSessionTokenAsync

    GetRequiredSessionTokenAsync<TSessionToken>(HttpContext, SessionAccessOptions)

    Gets the session token from the HTTP context. If the user is not signed in, throws an UnauthorizedApiException.

    Declaration
    public static ValueTask<TSessionToken> GetRequiredSessionTokenAsync<TSessionToken>(this HttpContext httpContext, SessionAccessOptions options = SessionAccessOptions.None) where TSessionToken : class, ISessionToken
    Parameters
    Type Name Description
    HttpContext httpContext
    SessionAccessOptions options
    Returns
    Type Description
    ValueTask<TSessionToken>
    Type Parameters
    Name Description
    TSessionToken
    © Singulink. All rights reserved.