-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EXC-16] update passport setup example (#1979)
- Loading branch information
1 parent
0b77a01
commit 6c54396
Showing
1 changed file
with
9 additions
and
8 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,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 | ||
} | ||
}); |