Skip to content

Commit 69d80fd

Browse files
authored
Update next-auth.md (#379)
Updates a few link to the new next-auth (now authjs) documentation, notably fixing dead line to schema
1 parent 8a81f7b commit 69d80fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guides/authentication/next-auth.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_label: Auth.js (NextAuth)
66

77
# Integrating With Auth.js (NextAuth)
88

9-
[NextAuth](https://next-auth.js.org/) is a comprehensive framework for implementing authentication in Next.js projects. It offers a pluggable mechanism for configuring how user data is persisted.
9+
[NextAuth](https://authjs.dev/) is a comprehensive framework for implementing authentication in Next.js projects. It offers a pluggable mechanism for configuring how user data is persisted.
1010

1111
To get access policies to work, ZenStack needs to be connected to the authentication system to get the user's identity. This guide introduces tasks required for integrating ZenStack with NextAuth. You can find a complete example [here](https://github.com/zenstackhq/sample-todo-nextjs ':target=blank').
1212

@@ -31,7 +31,7 @@ model User {
3131
}
3232
```
3333

34-
You can find the detailed database model requirements [here](https://next-auth.js.org/adapters/models ':target=blank').
34+
You can find the detailed database model requirements [here](https://authjs.dev/getting-started/adapters/prisma#schema ':target=blank').
3535

3636
### Adapter
3737

@@ -54,7 +54,7 @@ export default NextAuth(authOptions);
5454

5555
### Authorize users for credentials-based auth
5656

57-
If you use [`CredentialsProvider`](https://next-auth.js.org/providers/credentials ':target=blank'), i.e. email/password based auth, you need to implement an `authorize` function for verifying credentials against the database.
57+
If you use [`CredentialsProvider`](https://authjs.dev/getting-started/authentication/credentials#credentials-provider ':target=blank'), i.e. email/password based auth, you need to implement an `authorize` function for verifying credentials against the database.
5858

5959
This is standard Prisma stuff, and the following is just a quick example of how to do it:
6060

0 commit comments

Comments
 (0)