Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support custom headers for sanctum client instance #97

Conversation

manchenkoff
Copy link
Owner

@manchenkoff manchenkoff commented May 29, 2024

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:

  • Code style and linters are passing
  • Backwards compatibility is maintained
  • Requires documentation to be updated

@manchenkoff manchenkoff self-assigned this May 29, 2024
@manchenkoff manchenkoff linked an issue May 29, 2024 that may be closed by this pull request
@manchenkoff manchenkoff force-pushed the 95-feature-support-custom-headers-for-usesanctumclient-instance branch from b583cb7 to cd77036 Compare May 30, 2024 21:42
@manchenkoff manchenkoff merged commit ef1eb25 into main May 30, 2024
1 check passed
@manchenkoff manchenkoff deleted the 95-feature-support-custom-headers-for-usesanctumclient-instance branch May 30, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Support custom headers for useSanctumClient instance
1 participant