Archived Content from Web3Auth Community
This topic was originally posted by githubdiscussions on 11/17/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.
I'm trying to integrate Custom-auth-swift-sdk in our app but I'm a little confused with the params. We are building a crypto app and for that we are using Torus API for Login/Registration. It is working fine on the web using CustomAuth SDK.
On web, we init custom auth as follows:
customauth = new CustomAuth.default({
baseUrl: `${window.location.origin}/auth`,
network: 'testnet',
networkUrl:
'https://cold-/..............496a4/',
});
And then use getTorusKey like so:
const result = await customauth.getTorusKey(
'myapp-test-cognito',
myAPPtoken.email,
{ verifier_id: myAPPtoken.email },
JWT
);
and I am trying to duplicate that functionality on iOS. So for iOS we have 3 options for login and registration (i.e. email/pass, SignIn/Up with Google and Apple). We have native iOS registration and login screens and for Google/Apple we can use browser redirection. So my question is, what options do I use for 'loginType' and 'jwtParams' for SubVerifierDetails. And what to use for CustomAuth; 'network' and 'networkUrl'. Following is how I implemented and it was returning data earlier, now I get error: commitment request failed.
Originally posted by: anilthedeveoper
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/894
