FetchError: [GET] "http://localhost/api/v1/user/me?include=roles.permissions": <no response> Failed to execute 'fetch' on 'Window': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.Caused by: TypeError: Failed to execute 'fetch' on 'Window': Failed to read the 'headers' property from 'RequestInit': String contains non ISO-8859-1 code point.
at $fetchRaw2 (ofetch.js?v=3b6afd57:297:32)
at onError (ofetch.js?v=3b6afd57:232:16)
at AsyncFunction.$fetchRaw2 [as raw] (ofetch.js?v=3b6afd57:306:20)
The authorize API seems to have been implemented from version 3.1.0, so I plan to use version 3.0.5 for the time being.
However, this is not a fundamental solution, so I will continue to wait for support.
Environment
@nuxt-alt/auth 3.1.4 @nuxt-alt/http 1.7.10 node 18.18.2 npm 9.8.1 vue 3.3.8 nuxt 3.8.2
Nuxt Config
Reproduction
Can't reproduce.
Describe the bug
When I try to login, '_auth/local/local1/authorize' API is called.
Its response is the html source of the page.
The response seems to be used as the me API's request header, and it fails.
What should the response format of the authorize API be?
Additional context
■Login code
■The request body of the authorize API
Logs