manchenkoff / nuxt-auth-sanctum

Nuxt module for Laravel Sanctum authentication
https://manchenkoff.gitbook.io/nuxt-auth-sanctum/
MIT License
116 stars 16 forks source link

feat: support custom headers for sanctum client instance #97

Closed manchenkoff closed 4 weeks ago

manchenkoff commented 1 month ago

Is your PR related to a specific issue/feature? Please describe and mention issues.

Closes #95 by providing additional app.config.ts section to configure onRequest and onResponse interceptors for ofetch instance.

Additional context

Interceptor function receives an instance of NuxtApp, Logger, and FetchContext in order to have access to other plugins and configurations.

Checklist: