busao
    Preparing search index...

    Function isValidSession

    • Determines if an authentication token is actually valid.

      Parameters

      • request: BunRequest

        The request to the associated endpoint.

      • database: BunSQLiteDatabase

        The project's database.

      Returns boolean

      Whether the session cookie has a value that has actually been registered in the database.