Release Token Mismatch Exception (Exceptions/LivewireReleaseTokenMismatchException.php)

livewire · src/Exceptions/LivewireReleaseTokenMismatchException.php · php · MIT
infra, dev-tools, lang:php, fw:livewire, tag:exception, tag:http-exception

Throws a 419 HTTP exception when Livewire detects a release token mismatch caused by a new deployment invalidating the user's session. Reuse for handling stale asset/session conflicts after deploys.

// Source: https://github.com/livewire/livewire | License: MIT | Copyright Caleb Porzio
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Livewire\Exceptions;

use Symfony\Component\HttpKernel\Exception\HttpException;

class LivewireReleaseTokenMismatchException extends HttpException
{
    public function __construct()
    {
        parent::__construct(
            419,
            "Livewire detected a release token mismatch. \n".
            "This happens when a user's browser session has been invalidated by a new deployment."
        );
    }
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key