-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2dbe15
commit 479c43e
Showing
6 changed files
with
28 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"extends": ["next/core-web-vitals", "next"] | ||
"extends": ["next/core-web-vitals", "next"], | ||
"settings": { | ||
"next": { | ||
"rootDir": "examples/passport/wallets-with-nextjs" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
import { config, passport } from '@imtbl/sdk'; | ||
|
||
// create the Passport instance and export it so it can be used in the examples | ||
export const passportInstance = new passport.Passport({ | ||
baseConfig: { | ||
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 ?? "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 | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters