Flarum (2.x)
    Preparing search index...

    The Session class defines the current user session. It stores a reference to the current authenticated user, and provides methods to log in/out.

    Index
    csrfToken: string

    The CSRF token.

    user: User | null

    The current authenticated user.