Skip to content

[Feature] Nuxt Compatibility via Alternative Request Handling #37

@TimoCuijpers

Description

@TimoCuijpers

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-junction relies on Axios, which doesn't align well with Nuxt's standard request handling approach (useFetch, useAsyncData). As a result, developers currently can't leverage js-junction effectively 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-sanctum for secure, streamlined authentication.

I welcome feedback or suggestions regarding this direction!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions