next-auth
574e06e8 - feat(frameworks): add @auth/express (#8354)

Commit
2 years ago
feat(frameworks): add @auth/express (#8354) * chore: setup initial auth/express package Co-Authored-By: Lachie Hill <lachiehill@gmail.com> * feat: add express framework package Co-authored-by: Lachie Hill <lachiehill@gmail.com> * refactor: httpApiAdapters.ts -> http-api-adapters.ts * chore: encode with std URLSearchParams * added tsup config and gitignore * test: setup tests for request http-api-adapter * implement get session Co-authored-by: Rexford Essilfie <rexfordessilfie09@gmail.com> * expose http-api-adapters Co-authored-by: Rexford Essilfie <rexfordessilfie09@gmail.com> * import adapters with filetype * test: polyfill global fetch for tests * test: add express response adapter test * chore: default empty object for encodeUrlEncoded * docs: add jsdocs for @auth/express index * change tests to esm * integration test for login and getSession * setup secret env variable for tests * chore: cleanup tests plus update lock-file * chore: update lock-file * docs: update frameworks-express readme * docs: update route for Express docs * chore: apply suggestions from code review Co-authored-by: Balázs Orbán <info@balazsorban.com> * chore: update polyfills Co-authored-by: Balázs Orbán <info@balazsorban.com> * refactor: move http-api-adapters to internal lib * chore: build with tsc plus update deps * chore: update pnpm-lock * docs: autogenerate @auth/express docs * test: finish updating polyfills * chore: update lock-file and @auth/tsconfig dep * fix: update lock plus express res type * chore: update package-lock * fix: express response content-type * chore: cleanup tsconfig * chore: add express.authjs.dev redirect * docs: SvelteKit -> Express in @auth/express * specific imports for ES modules * docs: update @auth/express docs generation to new format * chore: trim down tsconfig * test: update cookie prefix from next-auth -> authjs * test: update extractCookieValue to handle non-array * chore: update pnpm-lock * chore: omit raw from express AuthConfig parameter type * fix: small pnpm-lock change * fix: pnpm-lock.yaml update --------- Co-authored-by: Lachie Hill <lachiehill@gmail.com> Co-authored-by: Balázs Orbán <info@balazsorban.com> Co-authored-by: Nico Domino <yo@ndo.dev>
Parents
Loading