From bfe6d4dcf7cff1cd05ecfc3cecdd4a23af9986fc Mon Sep 17 00:00:00 2001 From: Andrew Yang Date: Sat, 27 Jul 2024 14:25:28 +1000 Subject: [PATCH] add signing example --- examples/passport/wallets-connect-with-nextjs/src/app/utils.ts | 2 +- examples/passport/wallets-signing-with-nextjs/src/app/utils.ts | 2 +- examples/passport/wallets-transactions-with-nextjs/src/utils.ts | 2 +- package.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/passport/wallets-connect-with-nextjs/src/app/utils.ts b/examples/passport/wallets-connect-with-nextjs/src/app/utils.ts index 3f17014811..745cf25e89 100644 --- a/examples/passport/wallets-connect-with-nextjs/src/app/utils.ts +++ b/examples/passport/wallets-connect-with-nextjs/src/app/utils.ts @@ -6,7 +6,7 @@ export const passportInstance = new passport.Passport({ environment: config.Environment.SANDBOX, publishableKey: process.env.NEXT_PUBLIC_PUBLISHABLE_KEY ?? '', // replace with your publishable API key from Hub }, - clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub + clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub redirectUri: 'http://localhost:3000/redirect', // replace with one of your redirect URIs from Hub logoutRedirectUri: 'http://localhost:3000/logout', // replace with one of your logout URIs from Hub audience: 'platform_api', diff --git a/examples/passport/wallets-signing-with-nextjs/src/app/utils.ts b/examples/passport/wallets-signing-with-nextjs/src/app/utils.ts index 3f17014811..745cf25e89 100644 --- a/examples/passport/wallets-signing-with-nextjs/src/app/utils.ts +++ b/examples/passport/wallets-signing-with-nextjs/src/app/utils.ts @@ -6,7 +6,7 @@ export const passportInstance = new passport.Passport({ environment: config.Environment.SANDBOX, publishableKey: process.env.NEXT_PUBLIC_PUBLISHABLE_KEY ?? '', // replace with your publishable API key from Hub }, - clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub + clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub redirectUri: 'http://localhost:3000/redirect', // replace with one of your redirect URIs from Hub logoutRedirectUri: 'http://localhost:3000/logout', // replace with one of your logout URIs from Hub audience: 'platform_api', diff --git a/examples/passport/wallets-transactions-with-nextjs/src/utils.ts b/examples/passport/wallets-transactions-with-nextjs/src/utils.ts index 3f17014811..745cf25e89 100644 --- a/examples/passport/wallets-transactions-with-nextjs/src/utils.ts +++ b/examples/passport/wallets-transactions-with-nextjs/src/utils.ts @@ -6,7 +6,7 @@ export const passportInstance = new passport.Passport({ environment: config.Environment.SANDBOX, publishableKey: process.env.NEXT_PUBLIC_PUBLISHABLE_KEY ?? '', // replace with your publishable API key from Hub }, - clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub + clientId: process.env.NEXT_PUBLIC_CLIENT_ID ?? '', // replace with your client ID from Hub redirectUri: 'http://localhost:3000/redirect', // replace with one of your redirect URIs from Hub logoutRedirectUri: 'http://localhost:3000/logout', // replace with one of your logout URIs from Hub audience: 'platform_api', diff --git a/package.json b/package.json index 400a31ae21..8ff27008e6 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,7 @@ "packages/minting-backend/sdk", "examples/passport/identity-with-nextjs", "examples/passport/wallets-connect-with-nextjs", + "examples/passport/wallets-signing-with-nextjs", "examples/passport/wallets-transactions-with-nextjs" ], "nohoist": [