Balázs Orbán
2875b49f11
fix(core): preserve incoming set cookies ( #6029 )
...
* fix(core): preserve `set-cookie` by the user
* add test
* improve req/res mocking
* refactor
* fix comment typo
2022-12-12 13:47:34 +00:00
Balázs Orbán
5259d247a2
fix(next): correctly bundle next-auth/middleware
...
fixes #6025
2022-12-12 11:59:37 +01:00
Balázs Orbán
d1d93fd75e
chore(release): bump package version(s) [skip ci]
next-auth@v4.18.5
2022-12-11 15:52:57 +01:00
Balázs Orbán
62f672ae30
fix(core): host detection/NEXTAUTH_URL ( #6007 )
...
* rename `host` to `origin` internally
* rename `userOptions` to `authOptions` internally
* use object for `headers` internally
* default `method` to GET
* simplify `unstable_getServerSession`
* allow optional headers
* revert middleware
* wip getURL
* revert host detection
* use old `detectHost`
* fix/add some tests wip
* move more to core, refactor getURL
* better type auth actions
* fix custom path support (w/ api/auth)
* add `getURL` tests
* fix email tests
* fix assert tests
* custom base without api/auth, with trailing slash
* remove parseUrl from assert.ts
* return 400 when wrong url
* fix tests
* refactor
* fix protocol in dev
* fix tests
* fix custom url handling
* add todo comments
2022-12-11 14:48:28 +00:00
Balázs Orbán
2c669b32fc
fix(core): correct status code when returning redirects ( #6004 )
...
* fix(core): correctly set status when returning redirect
* update tests
* forward other headers
* update test
* remove default 200 status
2022-12-11 12:55:16 +00:00
Cyril Perraud
2dea8919e5
fix(sequelize): increase sequelize id_token column length ( #5929 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-10 12:34:45 +01:00
Balázs Orbán
6fdb0da6eb
chore(release): bump package version(s) [skip ci]
next-auth@v4.18.4
2022-12-09 00:34:31 +01:00
Balázs Orbán
5c4a9a697d
fix(core): handle Request -> Response regressions ( #5991 )
...
* fix(next): don't override `Content-Type` by `unstable_getServerSession`
* fix(core): handle `,` while setting `set-cookie`
2022-12-08 23:29:25 +00:00
Thomas Desmond
eddd8fd7f9
chore(docs): add new tutorial ( #5604 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-08 18:24:58 +01:00
Balázs Orbán
b74bfc68e8
chore(release): bump package version(s) [skip ci]
next-auth@v4.18.3
2022-12-08 05:16:10 +01:00
Balázs Orbán
0a140cdf87
test(core): fix test
2022-12-08 05:11:37 +01:00
Balázs Orbán
157269e0fb
fix(core): throw error if no action can be determined
2022-12-08 05:10:26 +01:00
Balázs Orbán
221bc8e99c
fix(core): add protocol if missing
2022-12-08 04:54:42 +01:00
Balázs Orbán
f856363ac8
chore(release): bump package version(s) [skip ci]
2022-12-08 04:38:03 +01:00
Balázs Orbán
f3291025e6
fix(core): properly construct url ( #5984 )
next-auth@v4.18.2
2022-12-08 04:33:20 +01:00
Balázs Orbán
bc0912cc71
chore(release): bump package version(s) [skip ci]
next-auth@v4.18.1
2022-12-08 00:08:09 +01:00
Branden Cash
b19b2bcb3f
fix(core): don't mutate authOptions in unstable_getServerSession ( #5973 )
2022-12-07 22:04:53 +01:00
Balázs Orbán
63c2a15717
Update nextjs.md
2022-12-07 14:39:57 +01:00
Balázs Orbán
9209b48dbe
chore: add issue validator
2022-12-06 12:21:42 +01:00
Balázs Orbán
0fcc6a0d04
refactor: more renames
2022-12-05 13:38:29 +01:00
Balázs Orbán
cbf8c7a59f
refactor: rename
2022-12-03 15:51:38 +01:00
Balázs Orbán
0e6c51adec
refactor: rename
2022-12-03 15:41:39 +01:00
Balázs Orbán
c4352a7d56
chore(dev): upgrade dev app and deps
...
Conflicts:
apps/dev/pages/api/auth/[...nextauth].ts
2022-12-03 15:33:49 +01:00
Balázs Orbán
7e91d7df54
refactor(core): use standard Request and Response ( #4769 )
...
* WIP use `Request` and `Response` for core
* bump Next.js
* rename ts types
* refactor
* simplify
* upgrade Next.js
* implement body reader
* use `Request`/`Response` in `next-auth/next`
* make linter happy
* revert
* fix tests
* remove workaround for middleware return type
* return session in protected api route example
* don't export internal handler
* fall back host to localhost
* refactor `getBody`
* refactor `next-auth/next`
* chore: add `@edge-runtime/jest-environment`
* fix tests, using Node 18 as runtime
* fix test
* remove patch
* fix neo4j build
* remove new-line
* reduce file changes in the PR
* fix tests
* fix tests
* refactor
* refactor
* add host tests
* refactor tests
* fix body reading
* fix tests
* use 302
* fix test
* fix again
* fix tests
* handle when body is `Buffer`
* move comment
2022-12-03 13:39:08 +00:00
Balázs Orbán
c1424136db
chore(dev): don't load all adapters in dev app
2022-12-03 13:45:06 +01:00
Balázs Orbán
f2a07932b9
chore(release): bump package version(s) [skip ci]
next-auth@v4.18.0
@next-auth/firebase-adapter@v1.0.3
@next-auth/pouchdb-adapter@v.0.1.5
2022-12-03 12:38:32 +01:00
Balázs Orbán
25c7ce1d2b
chore: revert sync-example action
2022-12-03 12:31:22 +01:00
Vedant
227a233bd8
chore(adapters): update firebase sdk version in firebase adapter ( #5902 )
...
* Update firebase SDK version
* Update pnpm-lock.yaml
* add `--debug`
* move flag
* add `FIREBASE_TOKEN`
* chore: upgrade `firebase-tools`
* revert peer dep change
* remove --debug flag
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-12-03 11:29:09 +00:00
Vedant
cf9f133aa3
fix(adapters): tsconfig for firebase and pouchdb ( #5945 )
...
* Update tsconfig.json
* Update tsconfig.json
2022-12-03 09:48:55 +01:00
Arnaud Zheng
2301c1be44
chore(types): fix typo in comment ( #5815 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-12-02 16:39:28 +01:00
jintak0401
6e408e24bf
fix(provider): modify response.name to response.nickname (Naver) ( #5915 )
...
fix(provider): modify response.name to response.nickname (Naver Provider)
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-12-01 08:12:16 +07:00
Jason Brady
f277989c69
feat(core): make pkce and state maxAge configurable on the cookies ( #4719 )
...
* feat(cookies): make pkce and state maxAge configurable on the cookies (#4660 )
* added tests for pkce and state handlers
2022-12-01 08:02:42 +07:00
Nico Domino
6146e93288
chore(docs): add new provider styling notes to CONTRIBUTING.md ( #5900 )
2022-11-30 15:44:50 +01:00
Nico Domino
1ff565da6c
chore(docs): update oauth.md styling docs ( #5899 )
...
* chore(docs): update oauth.md styling docs
* chore: add note about styling object
* chore: typo
* chore: filename typos
2022-11-30 15:43:55 +01:00
Nico Domino
41f75cf870
chore(actions): version bump all deps ( #5903 )
2022-11-28 11:10:15 +00:00
Justin W Hall
dd591ed8d0
chore(docs): fix path Strava provider file ( #5853 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-27 14:04:17 +01:00
koolskateguy89
297bc2317f
chore(docs): fix spelling in docs ( #5867 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-27 13:44:35 +01:00
Tormod Flesjø
b170138e70
chore: update mongodb.md with typescript filetypes ( #5889 )
2022-11-27 13:11:54 +01:00
Balázs Orbán
a307079e0f
fix(ts): improve unstable_getServerSession return type ( #5792 )
...
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-11-24 15:13:05 +01:00
Jacob Penny
d52b7a6b7d
chore(adapters): fix typo on Firebase Adapter ( #5813 )
2022-11-24 14:31:43 +01:00
Jake Mulley
30b69a07eb
chore: fix import statement for next-auth/providers/email ( #5860 )
2022-11-21 12:07:09 +01:00
Balázs Orbán
0d1757814f
fix(next): improve dev environment variable handling ( #5763 )
...
* fix(next): HIDE `NEXTAUTH_URL` warning locally
* refactor: move out `process.env` from core
* fix tests
* simplify
* swap
2022-11-20 09:08:10 +00:00
Thang Vu
068f9b50b8
chore(release): bump package version(s) [skip ci]
@next-auth/supabase-adapter@v0.2.0
next-auth@v4.17.0
2022-11-19 21:29:28 +07:00
Martin Sonnberger
dac490b7a1
feat(adapters): Add Supabase adapter ( #5050 )
...
* Add Supabase adapter
* Add Supabase adapter
* Add schema setup to docs
* supabase config changes
* chore: update to supabase-js v2.
* chore: migrate to next_auth schema.
* feat: add supabase examples.
* chore: update docs.
* chore: add telemetry.
* fix: resolve issues after merge.
* chore: extend session type.
* typo
* chore: remove unnecessary grants.
* fix: schema constraints.
Co-authored-by: thorwebdev <thor@supabase.io >
Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com >
Co-authored-by: Thang Vu <hi@thvu.dev >
2022-11-19 20:56:20 +07:00
Gregor Adams
c0f51669e2
docs: upadte mongodb guide ( #5809 )
...
Co-authored-by: Nico Domino <yo@ndo.dev >
2022-11-16 16:38:55 +01:00
Nico Domino
cbf8ce3510
chore: fix signin btns svg URLs to 'main' ( #5826 )
2022-11-15 22:07:30 +01:00
Nico Domino
1c19cc71df
chore: add tour de source link to CONTRIBUTING.md ( #5820 )
2022-11-15 16:47:15 +00:00
Nico Domino
9d962a0056
feat: add signin button styles ( #5802 )
...
* feat: add signin button styles
* fix: remove unnecessary spans
chore: rm comments
* Update packages/next-auth/src/core/pages/signin.tsx
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* feat: add provider svgs to repo
* fix: adjust SVG sizes
* fix: adjust provider btn to logo links
* feat: apple provider btn style
* fix: add apple-dark svg
* feat: atlassian logo and style
* feat: auth0 logo and style
* feat: azure logo and style
* fix: azure logo size
* feat: battlenet logo and style
* feat: box logo and style
* feat: cognito logo and style
* feat: discord logo and style
* feat: facebook logo and style
* feat: foursquare logo and style
* fix: foursquare logo size
* feat: freshbooks logo and style
* feat: gitlab logo and style
* fix: gitlab logo whitespace
* feat: hubspot logo and style
* feat: instagram logo and style
* feat: keycloak logo and style
* feat: keycloak logo resize
* feat: linkedin logo and style
* feat: mailchimp logo and style
* feat: okta logo and style
* feat: update okta logos
* feat: patreon logo and style
* fix: okta logo viewbox
* feat: slack logo and style
* feat: spotify logo and style
* feat: todoist logo and style
* fix: spotify logo size
* feat: trakt logo and style
* feat: twitch logo and style
* feat: twitter logo and style
* feat: vk logo and style
* feat: wikimedia logo and style
* feat: workos logo and style
* fix: wikimedia-dark logo + twitter (legacy)
* fix: button:active styling
* fix: ignore eslint inline css custom properties warning
* fix: improve darkmode default btn stylign
* fix: swap github btn colors
* fix: swap line btn theme colors
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-11-15 16:46:42 +00:00
Håkon Collett Bjørgan
8387c78e3f
fix(core): update JSDoc for jwt in NextAuthOptions ( #5804 )
2022-11-13 07:55:35 +01:00
Balázs Orbán
58e30a6af6
chore(release): bump package version(s) [skip ci]
next-auth@v4.16.4
2022-11-07 21:33:48 +01:00