Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(examples): Added NextAuth 4 example app #423

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

davidmytton
Copy link
Contributor

Shows how to use Arcjet to protect your NextAuth login route and API routes using NextAuth for rate limit quotas.

@davidmytton davidmytton requested a review from a team as a code owner March 22, 2024 17:03
Copy link

trunk-io bot commented Mar 22, 2024

😎 Merged successfully - details.

Copy link
Contributor

@blaine-arcjet blaine-arcjet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@trunk-io trunk-io bot merged commit b218ebd into main Mar 28, 2024
13 of 14 checks passed
@trunk-io trunk-io bot deleted the david/examples-nextauth branch March 28, 2024 23:32
trunk-io bot pushed a commit that referenced this pull request Apr 8, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@arcjet/decorate: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/decorate-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/protocol bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/duration: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/duration-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/next: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/next-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/ip bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * arcjet bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/node: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/node-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/ip bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * arcjet bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/analyze: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/analyze-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @bytecodealliance/jco from 1.0.3 to 1.1.1 ([#473](#473)) ([4584fe4](4584fe4))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/eslint-config: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/eslint-config-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* Bump eslint-config-next from 14.1.3 to 14.1.4 ([#403](#403)) ([119245b](119245b))
* Bump eslint-config-turbo from 1.12.5 to 1.13.2 ([#488](#488)) ([b6ab105](b6ab105))
* Bump eslint-plugin-react from 7.34.0 to 7.34.1 ([#388](#388)) ([5ff4950](5ff4950))
</details>

<details><summary>@arcjet/ip: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/ip-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/logger: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/logger-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/protocol: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/protocol-v1.0.0-alpha.11) (2024-04-08)


### 🚀 New Features

* Add ArcjetIpDetails to an ArcjetDecision ([#510](#510)) ([0642c51](0642c51)), closes [#474](#474)


### 📦 Dependencies

* Bump @bufbuild/protobuf from 1.7.2 to 1.8.0 ([#377](#377)) ([5253740](5253740))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/rollup-config: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/rollup-config-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>@arcjet/tsconfig: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](https://github.com/arcjet/arcjet-js/compare/v1.0.0-alpha.10...@arcjet/tsconfig-v1.0.0-alpha.11) (2024-04-08)


### 🧹 Miscellaneous Chores

* **@arcjet/tsconfig:** Synchronize arcjet-js versions
</details>

<details><summary>arcjet: 1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](v1.0.0-alpha.10...arcjet-v1.0.0-alpha.11) (2024-04-08)


### 📦 Dependencies

* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @arcjet/analyze bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/duration bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/logger bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/protocol bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
  * devDependencies
    * @arcjet/eslint-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/rollup-config bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
    * @arcjet/tsconfig bumped from 1.0.0-alpha.10 to 1.0.0-alpha.11
</details>

<details><summary>1.0.0-alpha.11</summary>

## [1.0.0-alpha.11](v1.0.0-alpha.10...v1.0.0-alpha.11) (2024-04-08)


### 🚀 New Features

* Add ArcjetIpDetails to an ArcjetDecision ([#510](#510)) ([0642c51](0642c51)), closes [#474](#474)


### 📦 Dependencies

* Bump @bufbuild/protobuf from 1.7.2 to 1.8.0 ([#377](#377)) ([5253740](5253740))
* Bump eslint-config-next from 14.1.3 to 14.1.4 ([#403](#403)) ([119245b](119245b))
* Bump eslint-config-turbo from 1.12.5 to 1.13.2 ([#488](#488)) ([b6ab105](b6ab105))
* Bump eslint-plugin-react from 7.34.0 to 7.34.1 ([#388](#388)) ([5ff4950](5ff4950))
* Bump undici from 5.28.3 to 5.28.4 ([#505](#505)) ([0ffa608](0ffa608))
* **dev:** Bump @bytecodealliance/jco from 1.0.3 to 1.1.1 ([#473](#473)) ([4584fe4](4584fe4))
* **dev:** Bump @rollup/wasm-node from 4.13.0 to 4.13.2 ([#472](#472)) ([0268e51](0268e51))
* **dev:** Bump @rollup/wasm-node from 4.13.2 to 4.14.0 ([#493](#493)) ([ac14f3f](ac14f3f))
* **dev:** Bump @rollup/wasm-node from 4.14.0 to 4.14.1 ([#519](#519)) ([f859c0e](f859c0e))
* **dev:** Bump typescript from 5.4.2 to 5.4.3 ([#412](#412)) ([a69b76b](a69b76b))
* **dev:** Bump typescript from 5.4.3 to 5.4.4 ([#509](#509)) ([8976fb1](8976fb1))
* **example:** Bump express from 4.18.3 to 4.19.2 in /examples/nodejs-express-rl ([#459](#459)) ([ee1af9d](ee1af9d))
* **example:** Bump express from 4.18.3 to 4.19.2 in /examples/nodejs-express-validate-email ([#461](#461)) ([d45953e](d45953e))
* **example:** Bump the dependencies group in /examples/nextjs-13-pages-wrap with 2 updates ([#504](#504)) ([ebe7548](ebe7548))
* **example:** Bump the dependencies group in /examples/nextjs-13-pages-wrap with 6 updates ([#462](#462)) ([7e7affe](7e7affe))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-rl with 2 updates ([#498](#498)) ([c30357f](c30357f))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-rl with 7 updates ([#463](#463)) ([6181c38](6181c38))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-validate-email with 2 updates ([#496](#496)) ([67031c3](67031c3))
* **example:** Bump the dependencies group in /examples/nextjs-14-app-dir-validate-email with 7 updates ([#466](#466)) ([3a45ae4](3a45ae4))
* **example:** Bump the dependencies group in /examples/nextjs-14-authjs-5 with 4 updates ([#495](#495)) ([b9b3c3b](b9b3c3b))
* **example:** Bump the dependencies group in /examples/nextjs-14-clerk-rl with 8 updates ([#506](#506)) ([3635c13](3635c13))
* **example:** Bump the dependencies group in /examples/nextjs-14-clerk-shield with 8 updates ([#507](#507)) ([f2c5c94](f2c5c94))
* **example:** Bump the dependencies group in /examples/nextjs-14-decorate with 2 updates ([#500](#500)) ([8bb40cc](8bb40cc))
* **example:** Bump the dependencies group in /examples/nextjs-14-decorate with 7 updates ([#465](#465)) ([b13a8e6](b13a8e6))
* **example:** Bump the dependencies group in /examples/nextjs-14-nextauth-4 with 2 updates ([#502](#502)) ([f4b24b5](f4b24b5))
* **example:** Bump the dependencies group in /examples/nextjs-14-nextauth-4 with 7 updates ([#468](#468)) ([6ab6cdb](6ab6cdb))
* **example:** Bump the dependencies group in /examples/nextjs-14-openai with 4 updates ([#501](#501)) ([cde203b](cde203b))
* **example:** Bump the dependencies group in /examples/nextjs-14-openai with 9 updates ([#467](#467)) ([f3d785e](f3d785e))
* **example:** Bump the dependencies group in /examples/nextjs-14-pages-wrap with 7 updates ([#503](#503)) ([cfb84e1](cfb84e1))
* **example:** Bump the dependencies group in /examples/nextjs-example with 1 update ([#402](#402)) ([79911af](79911af))
* **example:** Bump the dependencies group in /examples/nodejs-express-rl with 1 update ([#438](#438)) ([da12423](da12423))


### 📝 Documentation

* **examples:** Added Auth.js 5 example app ([#432](#432)) ([b7a1901](b7a1901))
* **examples:** Added NextAuth 4 example app ([#423](#423)) ([b218ebd](b218ebd))


### 🧹 Miscellaneous Chores

* **ci:** Add the NextAuth 4 example to CI ([#471](#471)) ([a3ad83a](a3ad83a))
* Refresh root README + LICENSE ([#494](#494)) ([6f6da30](6f6da30))
</details>

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants