-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Feature Suggestion: Nuxt Compatibility via Alternative Request Handling
Hi,
I'm planning to create a Nuxt-compatible version of this package (js-junction) because currently it isn't possible to use it directly in Nuxt projects. The current implementation relies on Axios for HTTP requests, which isn't fully compatible with Nuxt's recommended request handling mechanisms.
Reasoning:
- Current Incompatibility:
js-junctionrelies on Axios, which doesn't align well with Nuxt's standard request handling approach (useFetch,useAsyncData). As a result, developers currently can't leveragejs-junctioneffectively within Nuxt environments. - Optimized Integration: Using Nuxt composables instead of Axios ensures seamless integration with Nuxt’s built-in SSR features, performance optimizations, and automatic data handling.
- Integration with nuxt-sanctum: By developing compatibility with
nuxt-sanctum, we can ensure smooth and secure authentication workflows tailored specifically for Nuxt.
Proposed Solution:
- Develop a separate Nuxt-specific implementation of
js-junction. - Replace Axios with Nuxt composables like
useFetch. - Ensure compatibility with
nuxt-sanctumfor secure, streamlined authentication.
I welcome feedback or suggestions regarding this direction!
Metadata
Metadata
Assignees
Labels
No labels