Skip to content

Commit

Permalink
docs: Next.js SSO with NextAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongxiao37 committed Jan 16, 2024
1 parent 00979ec commit de7aba0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _posts/2024-02-09-nextauth与azure-ad集成.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ export default function RootLayout({
}
```

## 配置环境变量

```bash
AZURE_AD_CLIENT_ID=xxx-xxx-xxxx
AZURE_AD_CLIENT_SECRET=xxx-xxx-xxxx
AZURE_AD_TENANT_ID=xxx-xxx-xxxx
NEXTAUTH_SECRET=xxx-xxx-xxxx
NEXTAUTH_URL=http://localhost:3000
```

## 创建 route.ts

```javascript
Expand Down

0 comments on commit de7aba0

Please sign in to comment.