v3.2.0
3.2.0 (2021-02-01)
Features
- provider: Add Medium (#1213) (ad3b0b6)
- provider: add LINE provider (#1091) (ea1d09b)
- provider: Add Mail.ru OAuth Service Provider and Callback snippet (#522) (2205cfa), closes /github.com/nextauthjs/next-auth/pull/522#issuecomment-669851914
- provider: add option to generate email verification token (#541) (42a822c)
- provider: re-add state, expand protection provider options (#1184) (214b22e)
- provider: add Salesforce provider (#1027) (2f3ed75)
- provider: add vk.com provider (#1060) (e8b1513)
- provider: finish Reddit provider and add documentation (#1094) (fbb5a12)
- provider: Add Bungie (#589) (958c31a)
- provider: add netlify (#555) (d5f5157)
- provider: reduce user facing API (#1023) (76b9832)
- Store user ID in sub claim of default JWT (#784) (6e2fc11), closes #625
- provider: Add Azure Active Directory B2C (#921) (18840ea)
- simplify NextAuth instantiation (#911) (51cfec9)
- provider: Add Azure Active Directory B2C (#809) (6e6a24a)
- prodvider: add foursquare (#584) (f72ee5e)
- send all params to logger function (#1214) (f4a954c)
- db: make Fauna DB collections & indexes configurable (#968) (751fd7b)
- provider: add strava provider (#986) (42596fb)
- pages: add dark theme support (#1088) (a18ec09)
- add native hkdf (#1124) (e26297b)
- add PKCE support (#941) (ea71a1f)
- add semantic-release (#920) (16a8720)
- allow react 17 as a peer dependency (#819) (8ac14ed)
- allow to return string in signIn callback (#1019) (15570b7)
- Display error if no [...nextauth].js found (#678) (989d23e), closes #647
- forward id_token to jwt and signIn callbacks (#1024) (a979e04)
- forward signIn auth params to /authorize (#1149) (cba149f)
- improve package development experience (#1064) (77de2ab)
- replace blur/focus event to visibility API for getSession (#1081) (b1a99ec)
- forward auth params from signin to provider (#823) (545a7e7)
- simplify NextAuth instantiation (#867) (b86ffa5)
Bug Fixes
- Add a null check to the window 'storage' event listener (#1198) (65e4910), closes #1125
- capitalization of errors in url params (#795) (64084d6)
- correct logger import (a15bdc1)
- don't chain on res.end on non-chainable res methods (#1031) (9ed75c7)
- ensure Images are produced for discord (#734) (672cedc)
- export getSession [skip release] (cff9d3e)
- fix lint issues (a7bae03)
- forward second argument to fetch body in signIn (9c9744f), closes #1206
- leave accessTokenExpires as null (d7e78d5), closes #1216
- make OAuth 1 work after refactoring (#1218) (f2a7ee0)
- miscellaneous bugfixes (#1030) (8e87137)
- pass csrfToken to signin renderer (ca06560)
- remove async from NextAuth default handler (505efc8)
- send /authorize params through url (30c6d63)
- treat user.id as optional param (#1010) (e3fd0ad)
- trigger release (b43e7dc)
- update nodemailer version in response to CVE. (#860) (05b2759)
- update Okta routes (#763) (8a6f094)
- use authorizationUrl correctly (ecddaf6)
- use startsWith for protocol matching in parseUrl (71b3122), closes #842
- adapter: fix ISO Datetime type error in Prisma updateSession (#640) (2cfe5ad)
- adapter: use findOne for typeorm (#1014) (f93dbbb)
- provider: handle no profile image for Spotify (#914) (0c9104c)
- provider: use authed_user on slack instead of spotify (#1174) (1caa9bb)
Reverts
- Revert "feat(provider): Add Azure Active Directory B2C (#809)" (#919) (7bedd4a), closes #809 #919
- Revert "feat: simplify NextAuth instantiation" (#910) (341fae2), closes #910
Styles
- make p system theme aware [skip release] (70a186c)
Miscellaneous Chores
- adapters: remove fauna (#1148) (31bb2c3)
- provider: remove Mixer (#1178) (f50ac19)
- add auto labeling to PRs [skip release] (#1025) (5e949a3)
- add link to issue explaining stalebot (b2c1f32)
- add myself to the contributors list 🙈 (cec46b0)
- add note about conveting questions to discussions (080dd5f)
- add reproduction section to questions (6f067be)
- add stalebot configuration (c564b84)
- Comply to Vercel Open Source sponsorship [skip release] (#1087) (f8e5a79)
- create PULL_REQUEST_TEMPLATE.md (6d023aa)
- define providers in single file for docs [skip release] (be53ef0)
- disallow issues without template (a6867b3)
- fix lint issues [skip release] (2562b3c)
- fix typo in stalebot comment (7d11686)
- rename labeler.yaml to labeler.yml [skip release] (7fdde62)
- run tests on canary [skip release] (21d22a7)
- update caiuse-lite db (040d7c5)
- dep: Bump highlight.js from 9.18.1 to 9.18.5 (#880) (6750acc)
- deps: upgrade typeorm to v0.2.30 (#1145) (ebaa28f)
- deps: Bump ini from 1.3.5 to 1.3.8 in /www (#953) (9abdbb5)
- release: change semantic-release/git to semantic-release/github (5060bd7)
- release: delete old workflow (284118e)
- release: trigger release on docs type (e06816a)
- hide comments from pull request template (71b4af0)
- reword PR template (6b1b861)
- run build GitHub Action on canary also (610ab39)
- run build GitHub Actions on canary as well (e4cc3a9)
- use stale label, instead of wontfix (9247495)
Code Refactoring
- be explicit about path in jsonconfig [skip release] (b84f1b6)
- code base improvements (#959) (0989ef6)
- code base improvements 2 (#1045) (e7c34fd)
- code base improvements 3 (#1072) (f6d6c43)
- define _getSession in useEffect scope (#724) (5f5174f)
- provide raw idToken through account object (#1211) (93f051c)
- show signin page in dev app [skip release] (2865b8c)
- db: update Prisma calls to support 2.12+ (#881) (9aae7bb)
Documentation
- add powered by vercel logo [skip release] (cb2fe0c)
- announce canary docs [skip release] (#1044) (78fd783)
- clarify .env usage in CONTRIBUTING.md [skip release] (#1085) (7f670c5)
- clear things up around using access_token [skip release] (90a8f7c), closes #1078
- Correcting a typo. "available" Line 70 (#965) (8bbb0ec), closes #809 #809 #919
- fix discord example code (#850) (94b0c68)
- Fix grammar in "Feature Requests" section of FAQs [skip release] (#1212) (645b53e)
- fix incorrect references in cypress docs (#932) (025f33a), closes #809 #809 #919
- fix typo Adapater -> Adapter (#960) (192e5bf)
- fix typo in callbacks.md (#815) (219b017)
- fix typo in callbacks.md [skip release] (b40e144)
- fix typo in options.md (#873) (dc516e8)
- fix typos in CONTRIBUTING.md [skip release] (7979b10)
- improve FAQ docs [skip release] (f53ea6c)
- misc improvements [skip release] (#1043) (e0dd8e4)
- more emphasis on req methods [skip release] (396f5d8)
- remove announcement bar [skip release] (d67f1b7)
- remove v1 documentation (#1142) (af30be1)
- Update Providers.Credential Example Block [skip release] (#1225) (cdc1ac5)
- adapter: add adapter repo to documentation [skip release] (#1173) (9860ad8)
- provider: add Salesforce provider (daed68a)
- provider: fix typos in providers code snippets [skip release] (#1204) (23ada52)
- remove redundant 3rd arg to sessions example (#874) (5415a9c), closes /github.com/nextauthjs/next-auth/blob/8115a7c66cdb1d86b0d2a0d76b9aa33c2bfaa33b/src/server/routes/session.js#L82
- Remove unnecessary promises (#915) (a5187b6)
- small update to sign in/out examples (#1016) (f3cc4d1)
- update some urls in the docs [skip release] (37cb810)
- update API docs about server-side
getProviders
(#879) (29a0d9d) - update contributing information [skip release] (#1011) (71b5008)
- Update default ports for support Databases (#839) (5f51c97)
- update for Now to Vercel (#847) (81ebff8)
- update info about TypeScript [skip release] (0069095)
- database: add mssql indexes in docs, fix typos (#925) (84bcecb)
- We have twice the word "side" (#964) (b2770d5), closes #809 #809 #919
- email: fix typo (#628) (ba83685)
- readme: mention Typescript support (a3104a0)