Skip to content

Commit cce4e4c

Browse files
committed
docs: Fix events header
1 parent 51b2677 commit cce4e4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/payload-authjs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ const authConfig: NextAuthConfig = {
182182
### 2. Virtual fields (jwt session only)
183183

184184
If you are using the Auth.js `jwt` session strategy (it's the default), you can use a [virtual field](https://payloadcms.com/docs/fields/overview#virtual-fields) to add additional data that should not be stored in the database.
185-
This plugin extract the virtual fields from your Auth.js jwt session and adds them to the user object.
185+
This plugin extracts the virtual fields from your Auth.js jwt session and adds them to the user object.
186186

187187
For example, you could add a `roles` field to the users collection:
188188

@@ -267,7 +267,7 @@ declare module "next-auth" {
267267

268268
_More information about typescript can be found in the [Auth.js documentation](https://authjs.dev/getting-started/typescript?framework=next-js)._
269269

270-
### 🎉 Events
270+
## 🎉 Events
271271

272272
Auth.js emits some [events](https://authjs.dev/reference/nextjs#events) that you can listen to. This plugin extends the events with additional parameters like the `adapter` and `payload` instance.
273273

@@ -311,7 +311,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth(
311311

312312
## 📐 Utility functions
313313

314-
This plugin also export a utility function to get the current payload user in the server-side:
314+
This plugin also exports a utility function to get the current payload user in the server-side:
315315

316316
```tsx
317317
// ServerComponentExample.tsx

0 commit comments

Comments
 (0)