Skip to content

CSRF token mismatch randomly occurs with auth since installing Pulse #252

@sts-ryan-holton

Description

@sts-ryan-holton

Pulse Version

1.0.0-beta5

Laravel Version

10.37.3

PHP Version

8.1.26

Livewire Version

Whatever Pulse is using

Database Driver & Version

Maria DB

Description

Recently I installed Laravel Pulse into my Laravel project. My Laravel project uses Laravel Sanctum and Laravel Fortify for authentication and registration. My Laravel project acts exclusively as an API backend to a Nuxt JS 2 front-end. My Nuxt front-end utilises v5 of the auth module.

Ever since I installed Pulse into my proect I've been seeing a few random "CSRF token mismatch" errors occur which I never saw prior to installing Pulse.

Steps To Reproduce

When I first saw the error, I couldn't log in at all, so I SSH'd into my server and set PULSE_ENABLED to false, ran php artisan cache:clear and then I was able to log in again. I think there might be something wrong somewhere in Pulse which is conflicting with another package like Sanctum.

I'm using the Redis ingest in my project, and saving pulse entries to my production database, I don't use a separate database. I do use a Horizon queue.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions