sanctum:refresh
Subscribe to hook and react to a subsequent user identity request.
When the authentication state changes (e.g. onLogin
, onLogout
), the module has to refresh the user identity.
Subscribe to the sanctum:refresh
hook which triggers once the identity refresh request is completed.
plugins/sanctum-listener.ts
Here is what the hook looks like
Last updated