Skip to content

Commit e3caebc

Browse files
committed
docs: Add missing import for example
1 parent ffc5a45 commit e3caebc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/payload-authjs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ First of all, this plugin only integrates Auth.js into Payload CMS by getting th
3333
3434
```ts
3535
// auth.config.ts
36+
import type { NextAuthConfig } from "next-auth";
3637
import github from "next-auth/providers/github";
3738

3839
export const authConfig: NextAuthConfig = {

packages/payload-authjs/src/authjs/withPayload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface WithPayloadOptions extends PayloadAdapterOptions {
6666
* @example
6767
* import { config } from "./auth.config";
6868
*
69-
* export const { handlers, signIn, signOut, auth } = NextAuth(() =>
69+
* export const { handlers, signIn, signOut, auth } = NextAuth(
7070
* withPayload(config, { payloadConfig }),
7171
* );
7272
*/

0 commit comments

Comments
 (0)