The Session object

The session details.

  • user

    User

    The authenticated user.

    This will be null if the user is not authenticated.

  • memberships

    Membership[]

    The authenticated user's organization memberships.

  • subscription

    AccountSubscription

    The user's default active individual subscription.

    See memberships for organization subscription and seat information.

  • expireTime

    date-time

    The expiration time for the current session.

  • scopes

    string[]

    The scopes available in the current session.

PreviousSession
NextGet session

Turn users intorevenue
$

Subscribe to monthly product updates

© 2024 UserHub

Integrations

    UserHub & Auth0UserHub & Stripe BillingUserHub & Google CloudUserHub & FirebaseUserHub & Custom Auth