-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
baseURL is being ignored #749
Comments
I've just come across issue #368. It appears the only way to get this to work correctly, is by including a trailing slash at the end of the Hopefully this bug is fixed in a future release of sidebase/nuxt-auth. // nuxt.config.js
export default defineNuxtConfig({
auth: {
baseURL: 'http://10.0.0.110/',
provider: {
type: 'local',
pages: {
login: 'auth/login'
},
endpoints: {
signIn: { path: 'api/auth/login', method: 'post' },
signOut: false,
signUp: false,
getSession: false
},
token: {
maxAgeInSeconds: 3600,
signInResponseTokenPointer: '/token/accessToken'
}
}
}
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Reproduction
-na-
Describe the bug
Issue:
Local auth provider is ignoring the
baseURL
. I have configured this every possible way, yet nothing seems to have any effect.Error:
Expected URLs:
API endpoint: http://10.0.0.110/api/auth/login
Login page: http://10.0.0.110/auth/login
Application Configuration:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: