Comments (1)
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 baseURL
, and removing the leading slashes from the endpoints
and pages
paths.
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'
}
}
}
})
from nuxt-auth.
Related Issues (20)
- Unify `local` and `refresh` provider HOT 2
- `signoutData` might be `undefined` HOT 1
- Redirect route after signing in HOT 1
- not support with i18n module HOT 1
- Runtime types do not match documentation
- Explanation of the implications of working with custom middleware HOT 3
- Infinite loop after upgrading to Nuxt 3.12.4 (callbackUrl) HOT 8
- Default behaviour for setting empty string at refreshRequestTokenPointer HOT 1
- enableOnWindowFocus must be used only in authenticated condition
- OAUTH_CALLBACK_ERROR : expected 200 OK, got: 301 Moved Permanently with Custom provider HOT 1
- Unification and flexibility with `AUTH_ORIGIN`
- Adding headers to endpoint requests HOT 3
- BaseURL is used incorrectly HOT 2
- RefreshHandler failing to find refreshToken value
- return data from Signup() Local Composable HOT 2
- Token and Session null when called from cachedEventHandler HOT 1
- Polish `NUXT_AUTH_ORIGIN` logic
- enableOnWindowFocus is not working with local provider!
- Unable to use httpOnly attribute for authCookie HOT 1
- Add server-side access to tokens and session for the `local` and `refresh` providers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt-auth.