method

RiduAuth.getSession

Verify the current credential; resolves null without a valid session and rejects on an outage.

Arguments

ArgumentTypeDescription
optionsRequestOptions | undefinedRequest options such as an AbortSignal.

Returns

The declared result.

Promise<SessionFor<Config, SessionCollection<Config, DefaultAuth>> | null>

Full signature

Related types

  • RequestOptions

    Options shared by every request.

  • SessionFor

    One authenticated session narrowed to the auth collection that owns it. With several auth collections this is a union discriminated by collection.

  • SessionCollection

    Auth collections a client's sessions can belong to: its default, or every auth collection.