v4.0.0-next.5
Pre-release
Pre-release
4.0.0-next.5 (2021-04-23)
Bug Fixes
- build: export functions in jwt (#1814) (543f812)
- build: remove unnecessary build before release (bb2237d)
- build: trigger re-release (fab7ce8)
- client: export getCsrfToken directly to support Webpack 5 (a2705fb)
- client: set useSession loading state correctly (#1468) (e553573), closes #1467 /github.com/nextauthjs/next-auth/blob/a7e08e2a3266efa9c82eb859e7141c798fcf07ae/src/client/index.js#L100-L100
- deps: upgrade to latest preact-render-to-string (#1475) (810d02e)
- docs: generate providers on docosaurus start (564b342)
- errors: expose custom errors (#1816) (be28672)
- jwt: make decode overrideable in getToken (#1751) (457952b)
- logger: attempt at fixing infinite loop (#1789) (2becdad)
- logger: properly end request every time (#1557) (985f7b3)
- oauth: support
response_mode=form_post
(#1669) (968903d) - page: add character encoding and page titles (#1380) (172e79c)
- page: fall back to default error page (#1700) (1c662e9)
- provider: add sub to defaultJwtPayload for credentials provider. (#1725) (ae26df0)
- provider: added options in instagram provider (#1570) (e6d0638)
- provider: proper check of protection property (#1694) (3dedf6c)
- provider: reject access token if slack login flow was canceled (#1544) (237b016)
- ts: add Mailchimp provider (#1821) (55a2932)
- ts: adjust AppOptions (#1815) (e26c5fc)
- ts: adjust properties on default interfaces (#1794) (eed0001)
- ts: expose errors type delcarations (#1817) (b95182d)
- ts: make Profile/User interfaces overridable (#1801) (34f334a)
- ts: move AppProvider out of internals (#1800) (172ad02)
- add skypack recommended fields (#1791) (c52ce57)
- make oauth_token_secret and oauth_token available (#1322) (17b7898)
- make sure useSession populates session correctly (#1462) (a7e08e2)
- replace .flat() to support Node <11 again (#1684) (872e180)
- send only the error message in callback redirects (#1424) (960ca85)
- truly replace .flat() to support Node <11 again (#1691) (d1dbfe1)
- validate provider existence before looking for protection property (#1687) (63171a0)
- provider: use correct file type for Discord profile img (#1365) (96ff048)
Features
- client: introduce NEXTAUTH_URL_INTERNAL (#1449) (f3e64f0)
- provider: accept array for protection to support multiple mechanisms (#1565) (5a3ee47)
- provider: add FACEIT provider (#1469) (3726d68)
- provider: add Instagram provider (#1447) (ed5cc4a)
- provider: add Kakao provider (#1459) (ba7aed1)
- provider: add Mailchimp provider (#1781) (49cb7e5)
- provider: add Osso SAML provider (#1448) (9594251)
- provider: add Zoho provider (#1516) (776b948)
- provider: allow disabling redirection on sign in with email (#1416) (71c78e8)
- provider: call generateVerificationToken async (#1378) (d8d497c)
- ts: expose types from main package (#1773) (46b62d7), closes #1665 #1677 #1677 #1681 #1724 #1760 #1690
- make tokens available in profile callback (#1329) (782482b)