Skip to content

[Feature] Migrate interceptors to hooks #362

Open
@manchenkoff

Description

@manchenkoff

Is your feature request related to a problem? Please describe.

Provide an alternative to interceptors by introducing two new events:

  • sanctum:request which triggers inside of the onRequest interceptor
  • sanctum:response which trigger inside of the onResponse interceptor

Both hooks should provide the same access to the fetch context, nuxt instance and allow extending headers, options and logging necessary messages.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions