Skip to content

Commit 20a38be

Browse files
authored
fix: make authentication optional in basic and pages starters (#833)
1 parent bd967a8 commit 20a38be

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

starters/basic-starter/lib/drupal.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ const clientId = process.env.DRUPAL_CLIENT_ID as string
55
const clientSecret = process.env.DRUPAL_CLIENT_SECRET as string
66

77
export const drupal = new NextDrupal(baseUrl, {
8-
auth: {
9-
clientId,
10-
clientSecret,
11-
},
8+
// Enable to use authentication
9+
// auth: {
10+
// clientId,
11+
// clientSecret,
12+
// },
13+
// withAuth: true,
1214
// debug: true,
1315
})

starters/pages-starter/lib/drupal.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ const clientId = process.env.DRUPAL_CLIENT_ID as string
55
const clientSecret = process.env.DRUPAL_CLIENT_SECRET as string
66

77
export const drupal = new NextDrupalPages(baseUrl, {
8-
auth: {
9-
clientId,
10-
clientSecret,
11-
},
8+
// Enable to use authentication
9+
// auth: {
10+
// clientId,
11+
// clientSecret,
12+
// },
13+
// withAuth: true,
1214
useDefaultEndpoints: true,
1315
// debug: true,
1416
})

0 commit comments

Comments
 (0)