sanctum:redirect
Subscribe to hook and react to any redirect made by the module.
The module can apply redirects in different situations, like onLogin
or onLogout
and you can subscribe to this event to keep track of any redirect happening before it is done.
Subscribe to the sanctum:redirect
hook which receives the URL of the target path of a redirect.
plugins/sanctum-listener.ts
Here is what the hook looks like
Last updated