AliSci
March 11, 2025, 4:55pm
1
const identity = await client.getIdentity();
const agent = new HttpAgent({
identity,
host,
});
const actor = Actor.createActor<_SERVICE>(idlFactory, {
agent,
canisterId,
});
How to use google auth instead of const identity = await client.getIdentity();
and what is the most secured way to store the googleAuth token
Also metamask how to add that login option
Hi!
Internet Identity will support Google authentication soon, as was announced a while ago in this post .
When that is developed, you can use auth-client which integrates with Internet Identity and the users will have the possibility to log in with Google.
Would that work for you?
4 Likes
To integrate Metamask, you can take a look at:
I hope this helps.
1 Like
AliSci
March 12, 2025, 12:45pm
5
Very strange when calling const result = await MsqClient.createAndLogin();
ecpected it to open meta mask
but it open this website https://msq.tech/integration/login
it shows Connecting your wallet...
I was waiting forever never actually connect locally maybe I should connect only on the main net ?
Sorry, I don’t know the solution to this.
I guess you can ask in the MetaMask forum. They must have one also.
1 Like