VPremiss / Livewire-Nonceable

Working around public methods in Livewire...
MIT License
0 stars 0 forks source link

Implement a new setup for delayed nonces (queued jobs) #33

Open GoodM4ven opened 1 month ago

GoodM4ven commented 1 month ago

The current implementation works perfectly for nonces that should be valid for a certain period of time before they expire. But we need a setup via caching and queued jobs for cases of delayed public method calls of a Livewire component.

Take a look at the use-case for search rate-limiting in sunna.quest

GoodM4ven commented 1 month ago

Providing 2 seconds integer amounts! One is for waiting until then (not possible to use yet but a different exception), then the second starts after that count (like the usual) and it would allow it to be used within this period and then expires right after!