silverwolf-x's picture
|
download
raw
1.06 kB
# Authentication
This is an example using NextAuth.js for authentication.
## Deploy your own
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/auth&project-name=auth&repository-name=auth&env=AUTH_GITHUB_ID,AUTH_GITHUB_SECRET,AUTH_SECRET)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), [pnpm](https://pnpm.io), or [Bun](https://bun.sh/docs/cli/bunx) to bootstrap the example:
```bash
npx create-next-app --example auth auth-app
```
```bash
yarn create next-app --example auth auth-app
```
```bash
pnpm create next-app --example auth auth-app
```
```bash
bunx create-next-app --example auth auth-app
```
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

Xet Storage Details

Size:
1.06 kB
·
Xet hash:
0281a889d866c31ac0b0a17a7cfd60d8ea88c44e600b0f62bac28967303f8aff

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.