Auth-module: Support for plain Fetch API

Created on 4 Jan 2021  路  2Comments  路  Source: nuxt-community/auth-module

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

Users might not use axios or @nuxt/http - particularly with the new Nuxt polyfill for fetch.

It would be good to support the plain Fetch API, since it's already polyfilled by Nuxt.

Describe the solution you'd like to see

Do not load any networkHandler if set to false and default to the Fetch API.

auth: {
  networkHandler: false,
},
enhancement

All 2 comments

I think it's planned for the v5 already.

Or what about the ability to use https://github.com/nuxt-contrib/ohmyfetch instead of axios?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amjadkhan896 picture amjadkhan896  路  3Comments

nikkanetiya picture nikkanetiya  路  3Comments

Amoki picture Amoki  路  3Comments

roosht3 picture roosht3  路  3Comments

manniL picture manniL  路  4Comments