Skip to content

Commit e81e302

Browse files
committed
fix: make authentication optional in basic and pages starters
1 parent 1c1b244 commit e81e302

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

starters/basic-starter/lib/drupal.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ 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+
// },
1213
// debug: true,
1314
})

starters/pages-starter/lib/drupal.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +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 NextDrupalPages(baseUrl, {
8-
auth: {
9-
clientId,
10-
clientSecret,
11-
},
8+
// Enable to use authentication
9+
// auth: {
10+
// clientId,
11+
// clientSecret,
12+
// },
1213
useDefaultEndpoints: true,
1314
// debug: true,
1415
})

0 commit comments

Comments
 (0)