Stuck on Login Page after getting code no error displaying on unity

Issue: stuck on Login Page error displaying Something Goes wrong

@abdullah.noborderz Thanks for reaching out.

I reviewed your implementation and noticed that you’ve set mfaLevel to ‘none’. It’s important to note that when mfaLevel is configured this way, including mfaSettings can lead to inconsistencies, as mfaSettings expects at least one authentication factor to be specified. To resolve the issue you’re encountering, consider removing or commenting out mfaSettings if multi-factor authentication is not required in your current setup. This should align your configuration with the expected parameters and clear up the error.

@vjgee sir thanks for reply and support but notepad code in white background is from reactjs for web that was already implemented by our web devs. now I have to implement same scenarios to unity code in black back ground vusiual studios so User have same public address and wallet credentials while login so user occupy NFT from web and use it in app.I am not using mfaSettings in unity app coadding. And error was sown while login with unity.
Plz review again Implementations if there is any issue or any problem or any thing i have to correct please specify.

@abdullah.noborderz Can you share your Github repo for Unity to check

@vjgee sir i manage to run code by changing verifierIdField to Login_hint but when i login with same credentials web is generating different public address and unity is generating different. What will be the case here?
Unity Public Address: 0x0108DC0676f9EB78142c5
Web Public Address: 0xe291bdaee90eeedb0b24d

unity 1

Hi @abdullah.noborderz ,

Can you confirm that you are adding loginConfig to the Web3AuthOptions ?

 var JWTLoginConfig = new LoginConfigItem()
        {
            verifier = "....",
            clientId = "....",
            typeOfLogin = TypeOfLogin.JWT,
        };
web3Auth.setOptions(new Web3AuthOptions()
        {
            clientId = "....",
            redirectUrl = new System.Uri("...."),
            network = Web3Auth.Network.SAPPHIRE_MAINNET,
            loginConfig = new Dictionary<string, LoginConfigItem> // this part !?
            {
                { "jwt", JWTLoginConfig }
            }
        });

Please check this documentation about different address to understand better the issue: Different Private Keys/ Wallet Address across Integrations | Documentation | Web3Auth

Thanks for getting back @TomTom Sir I will check and get back to you soon

Hello, @TomTom Sir I checked my code and I already implemented loginConfig to web3AuthOptions but same problem getting different public address.
Here is my implementations.


My code file please change in this code file if implementations are wrong or any thing need to change. Also add comments and other to specify
Web 3 Auth Sample Implementations c# File

@vjgee sir need solution related asap need to fix it

@vjgee and @TomTom Please follow up here need help for implementation here.

hi @abdullah.noborderz,
I’m going to try it today with your code and give you an answer.

1 Like

would you mind sending the file again ?
@abdullah.noborderz

hi @abdullah.noborderz

I have just tested these examples:

I’m attaching you both capture and web3auth is returning me the same address.

Please double check that you are using it in both apps:

  • same verifier
  • same client Id
  • same auth0 id
  • also you are logging in with same email in both.


Ok Thanks @TomTom let me check on my side and will get back to you if i face issue

Hello @TomTom I implemented using your given example but but same problem getting different public address. Here is the code you requested please check and try.
MyWeb3Implementations
please change in this code file if implementations are wrong or any thing need to change. Also add comments to specify Changes.
cc: @vjgee

Hi @abdullah.noborderz
You are using a sub verifiers ?.

could you share the specific field of your idToken that you’re using for aggregating the verifiers ?
The choice of this field is crucial as it determines the basis on which verifiers can be aggregated efficiently.

Hello,
@TomTom yes I am using sub verifiers.
As I need to integrate passwordless Email Login with JWT, my sub verifier(verifierSubIdentifier = “ppp-passwordless-login”,)
Please tell me if any thing you needed.

@TomTom Actually we already implemented web3auth with aggregate verifiers using Auth0 in react JS. We want same approach for unity please guide how to do this. I already implement code in C# unity

please check

cc: @vjgee

hi @abdullah.noborderz

I hope you are doing well.

Could you please try to configure your unity ExtraLoginsOptions like this:

 extraLoginOptions = new ExtraLoginOptions()
            {
                login_hint = emailAddressField.text, // real email -> test@email.com
                verifierIdField = "email",
            }

Also please verify that the sub-verifier for auth0 using email_passwordless is set with: JWT Verifier ID = Email
image

1 Like