freeboard
    Preparing search index...

    Function createAuthToken

    • Create a signed JWT for authentication.

      Parameters

      • email: string

        User email address.

      • role: string

        User role.

      • active: boolean

        Whether the user account is active.

      • _id: string

        User document _id.

      • OptionalsessionVersion: number = 0

        Session version for revocation checks.

      Returns string

      Signed JWT token.