Skip to content

Commit 04c119b

Browse files
committed
refactor(sample): inline variable, use staging, remove useless await
1 parent bf9b14a commit 04c119b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sample/src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ interface ITokenInfo {
2323
scopes: string[];
2424
}
2525

26-
const AWESOME_APP_ID = 'af84f08f40970caf17f2e53b31771ceb50d0f32f7d44b826753982e809395290';
27-
2826
// Re-initialize when clicked
2927
elements.initializeBtn.onclick = () => {
3028
const commonOptions: InitOptions = {};
@@ -79,7 +77,7 @@ elements.doOnboardBtn.onclick = async () => {
7977
onBoardOptions.email = onboardOptionsElms.email.value;
8078
onBoardOptions.pkce = true;
8179

82-
await mtLinkSdk.onboard(onBoardOptions);
80+
mtLinkSdk.onboard(onBoardOptions);
8381
} catch (error) {
8482
console.log(error);
8583
}
@@ -242,11 +240,11 @@ elements.openServiceOptionsElms.vaultView.onchange = () => {
242240
};
243241

244242
const initializeLinkSDK = (options: InitOptions = {}) => {
245-
mtLinkSdk.init(AWESOME_APP_ID, {
243+
mtLinkSdk.init('af84f08f40970caf17f2e53b31771ceb50d0f32f7d44b826753982e809395290', {
246244
sdkPlatform: 'js',
247245
redirectUri: 'https://localhost:9000',
248246
locale: 'en',
249-
mode: 'develop',
247+
mode: 'staging',
250248
...options
251249
});
252250
};

0 commit comments

Comments
 (0)