mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
This change aligns the API with `openid-client`'s `checks` https://github.com/panva/node-openid-client/blob/main/docs/README.md#clientcallbackredirecturi-parameters-checks-extras, a library which we intend to migrate to in the future. Aligning our API early, so people get used to it. Also, objectively the name `protection` might not have been as clear as I first thought. `checks` better describe the intention. BREAKING CHANGE: The `state` option on OAuth providers is now deprecated. Use `checks: ["state"]` instead. `protections` is renamed to `checks`, here is an example: ```diff - protection: ["pkce"] + checks: ["pkece"] ``` Furthermore, string values are not supported anymore. This is to be able to handle fewer cases internally. ```diff - checks: "state" + checks: ["state"] ```
NextAuth.js Development App
This folder contains a Next.js app using NextAuth.js for local development. See the following section on how to start: