irfan
April 15, 2023, 10:10pm
1
hi. I couldn’t find a proper usage for triggerAggregateLogin?
these are all i found:
await (tKey.serviceProvider as TorusServiceProvider).triggerAggregateLogin(AggregateLoginParams)
interface AggregateLoginParams {
aggregateVerifierType: AGGREGATE_VERIFIER_TYPE;
verifierIdentifier: string;
subVerifierDetailsArray: SubVerifierDetails[];
}
Could you please provide an example about custom login with cognito token and google login?
Hey @irfan
You can refer to this example I have here:
import { useEffect, useState } from "react";
import "./App.css";
import DirectWebSdk from "@toruslabs/customauth";
function App() {
const [torus, setTorus] = useState<any>(null);
const [user, setUser] = useState<any>(null);
const jwtParams = {
domain: "https://shahbaz-torus.us.auth0.com", // eg: "https://torus-test.auth0.com"
};
const subVerifierDetailsGoogle = {
typeOfLogin: "google",
verifier: "w3a-google",
clientId:
"774338308167-q463s7kpvja16l4l0kko3nb925ikds2p.apps.googleusercontent.com",
};
This file has been truncated. show original
This is using Google and GitHub as aggregate verifiers.
irfan
April 17, 2023, 2:14pm
3
Thank you.
but I can not see the details in verifier (which sub-verifier name i gave).
how to update verifier when i want to add new sub-verifier?
There are update option in previously created verifiers but not in newly created ones.
Hey @irfan
What’s the name of your verifier? Let me look at my end.
Also, we are talking about testnet verifiers, right? Because mainnet verifiers can’t be modified once deployed.
irfan
April 18, 2023, 8:17am
5
what i need to learn that mainnet verifiers could be updated. I can redeploy for testnet but not for mainet since i dont want prive keys to be changed. so i better setup properly for mainnet.
thank you