File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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.
174176const 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 ` ,
You can’t perform that action at this time.
0 commit comments