Skip to content

Commit

Permalink
Update web3auth networks
Browse files Browse the repository at this point in the history
  • Loading branch information
yashovardhan committed Sep 21, 2023
1 parent e5da9d9 commit e331244
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tkey-mpc-web/tkey-mpc-react-bitcoin-example/src/tkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import ThresholdKey from "@tkey-mpc/core";
import { TorusServiceProvider } from "@tkey-mpc/service-provider-torus";
import { TorusStorageLayer } from "@tkey-mpc/storage-layer-torus";
import { ShareSerializationModule } from "@tkey-mpc/share-serialization";
import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants";
// Configuration of Service Provider

const torusSp = new TorusServiceProvider({
useTSS: true,
customAuthArgs: {
network: "sapphire_devnet",
network: TORUS_SAPPHIRE_NETWORK.SAPPHIRE_MAINNET,
web3AuthClientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // anything will work on localhost, but get one valid clientID before hosting, from https://dashboard.web3auth.io
baseUrl: `${window.location.origin}/serviceworker`,
enableLogging: true,
Expand Down
3 changes: 2 additions & 1 deletion tkey-mpc-web/tkey-mpc-react-firebase-example/src/tkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { TorusServiceProvider } from "@tkey-mpc/service-provider-torus";
import { TorusStorageLayer } from "@tkey-mpc/storage-layer-torus";
import { ShareSerializationModule } from "@tkey-mpc/share-serialization";
import { CustomChainConfig } from "@web3auth/base";
import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants";
// Configuration of Service Provider

const web3AuthClientId =
Expand All @@ -20,7 +21,7 @@ export const chainConfig: Omit<CustomChainConfig, "chainNamespace"> = {
const serviceProvider = new TorusServiceProvider({
useTSS: true,
customAuthArgs: {
network: "sapphire_devnet",
network: TORUS_SAPPHIRE_NETWORK.SAPPHIRE_MAINNET,
web3AuthClientId, // anything will work on localhost, but get one valid clientID before hosting, from https://dashboard.web3auth.io
baseUrl: `${window.location.origin}`,
enableLogging: true,
Expand Down
4 changes: 3 additions & 1 deletion tkey-mpc-web/tkey-mpc-react-popup-example/src/tkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import ThresholdKey from "@tkey-mpc/core";
import { TorusServiceProvider } from "@tkey-mpc/service-provider-torus";
import { TorusStorageLayer } from "@tkey-mpc/storage-layer-torus";
import { ShareSerializationModule } from "@tkey-mpc/share-serialization";
import { TORUS_SAPPHIRE_NETWORK } from "@toruslabs/constants";

// Configuration of Service Provider

const torusSp = new TorusServiceProvider({
useTSS: true,
customAuthArgs: {
network: "sapphire_devnet",
network: TORUS_SAPPHIRE_NETWORK.SAPPHIRE_MAINNET,
web3AuthClientId: "BPi5PB_UiIZ-cPz1GtV5i1I2iOSOHuimiXBI0e-Oe_u6X3oVAbCiAZOTEBtTXw4tsluTITPqA8zMsfxIKMjiqNQ", // anything will work on localhost, but get one valid clientID before hosting, from https://dashboard.web3auth.io
baseUrl: `${window.location.origin}/serviceworker`,
enableLogging: true,
Expand Down

0 comments on commit e331244

Please sign in to comment.