File tree Expand file tree Collapse file tree 9 files changed +21
-29
lines changed
packages/create-drupal-decoupled/src/templates/shared Expand file tree Collapse file tree 9 files changed +21
-29
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface TokenArgs {
77}
88
99export const getToken = async ( { uri, clientId, clientSecret } : TokenArgs ) => {
10- const client = await drupalAuthClient ( uri , 'client_credentials' , {
10+ const client = await drupalAuthClient ( uri , {
1111 clientId,
1212 clientSecret,
1313 } )
Original file line number Diff line number Diff line change 2626 "class-variance-authority" : " ^0.7.1" ,
2727 "clsx" : " ^2.1.1" ,
2828 "composable-functions" : " ^5.0.0" ,
29- "drupal-auth-client" : " ^0.4 " ,
29+ "drupal-auth-client" : " ^1.0 " ,
3030 "drupal-decoupled" : " ^0.2.2" ,
3131 "gql.tada" : " ^1.8.10" ,
3232 "lucide-react" : " ^0.474.0" ,
Original file line number Diff line number Diff line change @@ -11,14 +11,10 @@ import {
1111
1212 dotenv . config ( { path : envPath } )
1313
14- const authClient = await drupalAuthClient (
15- process . env . DRUPAL_AUTH_URI ! ,
16- 'client_credentials' ,
17- {
18- clientId : process . env . DRUPAL_CLIENT_ID ! ,
19- clientSecret : process . env . DRUPAL_CLIENT_SECRET ! ,
20- }
21- )
14+ const authClient = await drupalAuthClient ( process . env . DRUPAL_AUTH_URI ! , {
15+ clientId : process . env . DRUPAL_CLIENT_ID ! ,
16+ clientSecret : process . env . DRUPAL_CLIENT_SECRET ! ,
17+ } )
2218
2319 console . log ( '\n🚀 Generating GraphQL Schema' )
2420 await generateSchema ( {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface TokenArgs {
77}
88
99export const getToken = async ( { uri, clientId, clientSecret } : TokenArgs ) => {
10- const client = await drupalAuthClient ( uri , 'client_credentials' , {
10+ const client = await drupalAuthClient ( uri , {
1111 clientId,
1212 clientSecret,
1313 } )
Original file line number Diff line number Diff line change @@ -3932,10 +3932,10 @@ dotenv@^16.4.5:
39323932 resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.7.tgz#0e20c5b82950140aa99be360a8a5f52335f53c26"
39333933 integrity sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==
39343934
3935- drupal-auth-client@^0.4 :
3936- version "0.4 .0"
3937- resolved "https://registry.yarnpkg.com/drupal-auth-client/-/drupal-auth-client-0.4. 0.tgz#1ecec93b3404744546291e6e4f25ddb7b536b536 "
3938- integrity sha512-isCGyIQazg9Mi+zF/b96wSZ4R4U9mxayHPejvNQqkp/GolxkJ/vkrvxTcU3ShLrk3CkspPYPfr6uGEzyW2F5Rw ==
3935+ drupal-auth-client@^1.0 :
3936+ version "1.0 .0"
3937+ resolved "https://registry.yarnpkg.com/drupal-auth-client/-/drupal-auth-client-1.0. 0.tgz#792d00c1c38ff0cab8987e408632cecb5f5c1ed3 "
3938+ integrity sha512-RLsh0J5sCGbgMbkOwpUkGreM6StIgfTUcYtsnbIIV2r/0Y8HlrXPRY1e9x7SKnHH5hwDmpzhJ1YZen4cOHGdlw ==
39393939
39403940drupal-decoupled@^0.2.2 :
39413941 version "0.2.2"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ interface TokenArgs {
77}
88
99export const getToken = async ( { uri, clientId, clientSecret } : TokenArgs ) => {
10- const client = await drupalAuthClient ( uri , 'client_credentials' , {
10+ const client = await drupalAuthClient ( uri , {
1111 clientId,
1212 clientSecret,
1313 } )
Original file line number Diff line number Diff line change 2828 "class-variance-authority" : " ^0.7.1" ,
2929 "clsx" : " ^2.1.1" ,
3030 "composable-functions" : " ^5.0.0" ,
31- "drupal-auth-client" : " ^0.4 " ,
31+ "drupal-auth-client" : " ^1.0 " ,
3232 "drupal-decoupled" : " ^0.2.2" ,
3333 "gql.tada" : " ^1.8.10" ,
3434 "isbot" : " ^5.1.17" ,
Original file line number Diff line number Diff line change @@ -10,14 +10,10 @@ import {
1010 const envPath = path . join ( process . cwd ( ) , '.env' )
1111 dotenv . config ( { path : envPath } )
1212
13- const authClient = await drupalAuthClient (
14- process . env . DRUPAL_AUTH_URI ! ,
15- 'client_credentials' ,
16- {
17- clientId : process . env . DRUPAL_CLIENT_ID ! ,
18- clientSecret : process . env . DRUPAL_CLIENT_SECRET ! ,
19- }
20- )
13+ const authClient = await drupalAuthClient ( process . env . DRUPAL_AUTH_URI ! , {
14+ clientId : process . env . DRUPAL_CLIENT_ID ! ,
15+ clientSecret : process . env . DRUPAL_CLIENT_SECRET ! ,
16+ } )
2117
2218 console . log ( '\n🚀 Generating GraphQL Schema' )
2319 await generateSchema ( {
Original file line number Diff line number Diff line change @@ -2397,10 +2397,10 @@ dom-accessibility-api@^0.6.3:
23972397 resolved "https://registry.yarnpkg.com/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz#993e925cc1d73f2c662e7d75dd5a5445259a8fd8"
23982398 integrity sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==
23992399
2400- drupal-auth-client@^0.4 :
2401- version "0.4 .0"
2402- resolved "https://registry.yarnpkg.com/drupal-auth-client/-/drupal-auth-client-0.4. 0.tgz#1ecec93b3404744546291e6e4f25ddb7b536b536 "
2403- integrity sha512-isCGyIQazg9Mi+zF/b96wSZ4R4U9mxayHPejvNQqkp/GolxkJ/vkrvxTcU3ShLrk3CkspPYPfr6uGEzyW2F5Rw ==
2400+ drupal-auth-client@^1.0 :
2401+ version "1.0 .0"
2402+ resolved "https://registry.yarnpkg.com/drupal-auth-client/-/drupal-auth-client-1.0. 0.tgz#792d00c1c38ff0cab8987e408632cecb5f5c1ed3 "
2403+ integrity sha512-RLsh0J5sCGbgMbkOwpUkGreM6StIgfTUcYtsnbIIV2r/0Y8HlrXPRY1e9x7SKnHH5hwDmpzhJ1YZen4cOHGdlw ==
24042404
24052405drupal-decoupled@^0.2.2 :
24062406 version "0.2.2"
You can’t perform that action at this time.
0 commit comments