Balázs Orbán
|
eb33c9db1d
|
refactor: decouple Next.js from core (#2857)
* refactor: decouple Next.js from core (WIP)
* refactor: use `base` instead of `baseUrl`+`basePath`
* fix: signout route
* refactor(ts): convert files to TS
* fix: imports
* refactor: convert callback route
* fix: add `next` files to package
* chore(dev): alias npm email
* refactor: do not merge req with user options
* refactor: rename userOptions to options
* refactor: use native `URL` in `parseUrl`
* refactor: move Next.js specific code to `next` module
* refactor(ts): return `OutgoingResponse` on all routes
* fix: change `base` to `url`
* feat: introduce `getServerSession`
* refactor: move main logic to `handler` file
* chore(dev): showcase `getServerSession`
* feat: extract `sessionToken` from Authorization header
* fix: pass headers to getServerSession
* refactor: rename `server` to `core`
* refactor: re-export `next-auth/next` in `next-auth`
* fix: add `core` to npm package
* fix: re-export default method
* feat: return `body`+`header` instead of `json`,`text`
* feat: pass `NEXTAUTH_URL` as a variable to core
* refactor: simplify Next.js wrapper
* feat: export `client/_utils`
* fix(ts): suppress TS errors
|
2021-10-27 16:11:58 +02:00 |
|