-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
message: 'Invalid URL', on v 0.10.0 #970
Comments
Hi @agracia-foticos , thanks a lot for your report about v0.10! This data is valuable as there were lots of breaking changes and internal refactoring. |
Also beware that there are breaking changes exactly regarding the URL logic. You may need to follow the release notes for that: https://auth.sidebase.io/upgrade/version-0.10.0 |
Actually, I think I have done the migration correctly, since if I disable the globalAppMiddleware I can log in and out without problems. |
i upgrade from "@sidebase/nuxt-auth": "0.9.4", |
I'm able to replicate that as well on nuxt-auth/src/runtime/composables/authjs/utils/navigateToAuthPage.ts Lines 20 to 28 in 52d4b9a
In my case the I disabled the nuxt-auth/src/runtime/utils/url.ts Lines 15 to 26 in 52d4b9a
[0] my config in auth: {
isEnabled: true,
disableServerSideAuth: false,
globalAppMiddleware: true,
originEnvKey: "AUTH_ORIGIN",
baseURL: "http://localhost:3000/api/auth",
provider: {
type: "authjs",
trustHost: false,
},
sessionRefresh: {
enablePeriodically: 60 * 1000, // refresh every x seconds
enableOnWindowFocus: true,
},
} [1] "public": {
"auth": {
"baseURL": "/api/auth",
"disableInternalRouting": false,
"disableServerSideAuth": false,
"globalAppMiddleware": true,
"isEnabled": true,
"originEnvKey": "AUTH_ORIGIN",
"provider": {
"addDefaultCallbackUrl": true,
"defaultProvider": "",
"trustHost": false,
"type": "authjs"
},
"sessionRefresh": {
"enableOnWindowFocus": true,
"enablePeriodically": 60000,
"handler": ""
}
}
} |
Seeing the behavior this config. `auth: {
}` |
Environment
Linux
v22.8.0
3.14.1592
3.17.1
2.10.4
[email protected]
-
-
-
-
Reproduction
i have this config:
Describe the bug
i have this config:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: