## nextauthjs/next-auth — v4.1.2…v4.2.0

_17 commits._

### Features
- **feat(middleware): introduce `withAuth` Next.js method (#3657)** (f3be5e8)
- **feat(providers): add Trakt provider (#3771)** (844c9b1)
- **feat(core): detect `NEXTAUTH_SECRET` (#3783)** (f20d679)
- **feat(ts): strongly type sign-in and error page errors (#3740)** (53baf6d)
- **feat(react): add refetchOnWindowFocus option to SessionProvider (#3730)** (af157da)
- **feat(providers): add authentik provider (#3625)** (a4d831d)

### Fixes
- **fix(core): only show Twitter OAuth 2 warning once** (c9e16fb)
- **fix(providers): properly warn when using Twitter OAuth 2 (#3784)** (a7d34f9)
- **fix: Allow React 18 as peer dependency (#3728)** (1bf56a2)
- **fix(providers): Check for valid profile picture response before converting to base64 (#3656)** (4824f8c)

### Backend
- **typo in redirect url for response with error (#3758)** (31c03c9)
- **Update package.json** (714d80a)
- **Update bug_report.yaml** (3d5c669)
- **Update bug_report.yaml** (29977f1)
- **Update bug_report.yaml** (7d2e16a)

### Chore
- **chore(deps): bump node-fetch from 2.6.6 to 2.6.7 (#3777)** (255c822)
- **chore(deps-dev): bump next from 12.0.7 to 12.0.9 (#3764)** (74df39a)

_Recap by [Repo Wrapped](https://repowrapped.com/gh/nextauthjs/next-auth?utm_source=github-action)._