Skip to content

Commit

Permalink
[EXC-16] update passport setup example (#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-yangy authored Jul 17, 2024
1 parent 0b77a01 commit 6c54396
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions examples/passport/next-web3-modal/src/app/passport.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { config, passport } from '@imtbl/sdk';

const PUBLISHABLE_KEY = 'PUBLISHABLE_KEY';
const CLIENT_ID = 'CLIENT_ID';

export const passportInstance = new passport.Passport({
baseConfig: {
environment: config.Environment.PRODUCTION,
publishableKey: PUBLISHABLE_KEY,
environment: config.Environment.PRODUCTION, // or config.Environment.SANDBOX
publishableKey: '<YOUR_PUBLISHABLE_KEY>', // replace with your publishable API key from Hub
},
clientId: CLIENT_ID,
redirectUri: 'http://localhost:3000/redirect',
logoutRedirectUri: 'http://localhost:3000/logout',
clientId: '<YOUR_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',
scope: 'openid offline_access email transact',
popupOverlayOptions: {
disableGenericPopupOverlay: false, // Set to true to disable the generic pop-up overlay
disableBlockedPopupOverlay: false, // Set to true to disable the blocked pop-up overlay
}
});

0 comments on commit 6c54396

Please sign in to comment.