Skip to content

Commit 7fdbdee

Browse files
committed
feat: overwrite clientId based on the network
1 parent ddc4eab commit 7fdbdee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

demo/vue-app-new/src/MainView.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
LocalStorageAdapter,
2727
MemoryStorage,
2828
SessionStorageAdapter,
29+
WEB3AUTH_NETWORK,
2930
type BUILD_ENV_TYPE,
3031
type StorageConfig,
3132
} from "@web3auth/auth";
@@ -171,9 +172,9 @@ const options = computed((): Web3AuthOptions => {
171172
172173
// Note: authConnectionId may varies based on the project config and web3auth client id.
173174
// The following function return the authConnectionId relevant to the AuthBuildEnv and `clientIds` Map from `config.ts`
175+
// we may need to change the values every time we change the web3auth client id or build environment.
174176
const getAuthConnectionIds = (authConnectionStr: string): { authConnectionId: string; groupedAuthConnectionId?: string } => {
175-
if (authBuildEnv === BUILD_ENV.PRODUCTION) {
176-
//
177+
if (formData.network === WEB3AUTH_NETWORK.SAPPHIRE_MAINNET) {
177178
return {
178179
authConnectionId: "web3auth",
179180
groupedAuthConnectionId: `web3auth-auth0-${authConnectionStr}-passwordless-sapphire`,

0 commit comments

Comments
 (0)