Its About Login with Line

Hello , i want to share my query here regarding web3Auth login Line with no Modal SDK

Scenario :

  • I tried to login with my account its getting logged in successfully but if i try to login with same account from another device then its returning recovery factor verification and i didn’t applied anything like that and i do not receive anything like that on my email.

Screenshots :


SDK VERSIONS :
-“@web3auth/base”: “^6.1.7”,
-“@web3auth/base-provider”: “^7.0.4”,
-“@web3auth/core”: “^4.6.0”,
-“@web3auth/ethereum-provider”: “^7.0.4”,
-“@web3auth/modal”: “^7.0.5”,
-“@web3auth/no-modal”: “^7.1.1”,
-“@web3auth/openlogin-adapter”: “^7.1.1”,
-“@web3auth/solana-provider”: “^7.0.4”,
-“@web3auth/web3auth”: “^2.1.3”,

Platform :
-I had tried to login using firefox and chrome
-for implmentation i am using nextjs.

Verifier Name : ppp-social-login-2
SubVerifierName : ppp–line-login
Autho Clinet ID : Y0EkN53ZYHQmE3BTlv3ylvKAg5dt38CP
Client ID : BPQBNvcOz5yyQTaRiOrTIPlZ5iWlUKjT1ksRRwxASPZ-8jq3B_svQ6xWzcFfLkS2kUr-e26qMUt5HOQ9dMxHges

Please share your entire implementation code . Have you enabled MFA for your dapp?

const initSNS = async () => {
    try {
        const chainConfig = {
            chainNamespace: CHAIN_NAMESPACES.EIP155,
            chainId: '0x5', // Please use 0x1 for Mainnet
            rpcTarget: 'https://rpc.ankr.com/eth_goerli',
            displayName: 'Goerli Testnet',
            blockExplorer: 'https://goerli.etherscan.io/',
            ticker: 'ETH',
            tickerName: 'Ethereum',
        }
        const id =
            'BMwTnf6I4qw7qwOWP1J1BsgHKEZDGG0peo-DpCMBmurc1RUSY16Ag8LdC4on55hLiStTQxm0FJ2wOuIZU2m9gr0'
        const web3auth = new Web3AuthNoModal({
            clientId: id,
            chainConfig: chainConfig,
            web3AuthNetwork: 'testnet',
            useCoreKitKey: false,
        })

        const privateKeyProvider = new EthereumPrivateKeyProvider({
            config: { chainConfig },
        })

        const openloginAdapter = new OpenloginAdapter({
            loginSettings: {
                mfaLevel: 'none', // Pass on the mfa level of your choice: default, optional, mandatory, none
            },
            adapterSettings: {
                clientId: id,
                mfaSettings: {
                    deviceShareFactor: {
                        enable: false,
                        priority: 1,
                        mandatory: false,
                    },
                    backUpShareFactor: {
                        enable: false,
                        priority: 2,
                        mandatory: false,
                    },
                    socialBackupFactor: {
                        enable: false,
                        priority: 3,
                        mandatory: false,
                    },
                    passwordFactor: {
                        enable: false,
                        priority: 4,
                        mandatory: false,
                    },
                },
                loginConfig: {
                    // Google login
                    google: {
                        verifier: 'ppp-social-login-2', // Pass the Verifier name here. eg. w3a-agg-example
                        verifierSubIdentifier: 'ppp-google-login', // Pass the Sub-Verifier here. eg w3a-google
                        typeOfLogin: 'google', // Pass the type of login provider.
                        clientId:
                            '792163717588-h9t0is3ng39opqmt1meflma087ov18k3.apps.googleusercontent.com', // Pass the Google `Client ID` here.
                    },
                    // facebook Login via Auth0
                    facebook: {
                        verifier: 'ppp-social-login-2',
                        verifierSubIdentifier: 'ppp-facebook-login',
                        typeOfLogin: 'jwt',
                        clientId: 'H67UacptdCvHI27IEHuJBTVOgxjfAPvn',
                    },
                    // line Login via Auth0
                    line: {
                        verifier: 'ppp-social-login-2',
                        verifierSubIdentifier: 'ppp-line-login',
                        typeOfLogin: 'jwt',
                        clientId: 'Y0EkN53ZYHQmE3BTlv3ylvKAg5dt38CP',
                    },
                    apple: {
                        verifier: 'ppp-social-login-2',
                        verifierSubIdentifier: 'ppp-apple-login',
                        typeOfLogin: 'jwt',
                        clientId: 'QRQW2fY3167OZTzreWBqHTBQU7gGXUD0',
                    },
                    // emailpasswordless Login via Auth0
                    emailpasswordless: {
                        verifier: 'ppp-social-login-2', // Pass the Verifier name here. eg. w3a-agg-example
                        verifierSubIdentifier: 'ppp-passwordless-login', // Pass the Sub-Verifier here. eg w3a-a0-email-passwordless
                        typeOfLogin: 'jwt', // Pass the type of login provider. For Auth0, it's jwt and not Auth0.
                        clientId: 'kV31v4CokK8xEHgNcHki1nAVDCh3Friu', // Pass the `Client ID` of your Auth0 Application.
                    },
                },
            },
            privateKeyProvider,
        })
        web3auth.configureAdapter(openloginAdapter)
        ;(window as any).Web3Auth = web3auth
        await web3auth.init()
        ;(window as any).Web3AuthProvider = web3auth.provider
    } catch (error) {
        console.error(error)
    }
}



const loginWithLine = async () => {
    try {
        const { Web3Auth } = window as any
        const web3authProvider = await Web3Auth.connectTo('openlogin', {
            loginProvider: 'line',
            extraLoginOptions: {
                domain: 'https://dev-px4cfed8eh5nu1bn.jp.auth0.com', // Pass the Auth0 Domain here, eg. https://web3auth.au.auth0.com
                // This corresponds to the field inside jwt which must be used to uniquely identify the user.
                verifierIdField: 'email', // This is mapped b/w google and github logins.
                isVerifierIdCaseSensitive: false,
                connection: 'line',
            },

})
        ;(window as any).Web3AuthProvider = web3authProvider
    } catch (error) {
        console.error(error)
    }
}

@vjgee please check the code

@vjgee any luck please we have a major launch and we are stuck due to this issue.

1 Like

@vjgee did you get chance to check and review ?

The issue has already been forwarded to our Dev team. Please be patient and we will give you an update.

1 Like

@vjgee ok understood but please look into this on priority as we are delaying our major launch from months

1 Like

@web3auth/web3auth is deprecated, and @web3auth/modal is being used now.
@web3auth/core is deprecated and @web3auth/no-modal is being used now.

Please remove @web3auth/web3auth & @web3auth/core from your package.json file if you still have it.

Additionally, please upgrade the package versions to the latest below:

@web3auth/base": “^7.2.1” @web3auth/base - npm

@web3auth/modal": “^7.3.0”, @web3auth/modal - npm

@web3auth/base-provider”: “^7.2.1”, @web3auth/base-provider - npm

@web3auth/ethereum-provider”: “7.2.1” @web3auth/ethereum-provider - npm

@web3auth/openlogin-adapter”: “^7.2.1” @web3auth/openlogin-adapter - npm

-“@web3auth/solana-provider”: “^7.2.1”, @web3auth/solana-provider - npm

-“@web3auth/modal”: “^7.2.1”, @web3auth/no-modal - npm

ok @vjgee will check and update here if everything goes fine

after updating packages its saying this now but before updating it was taking to the logiin screen
following one

@vjgee please check and reply here

Can you try Incognito mode in Chrome and check? Are you using any extension in Chrome?

no @vjgee no extra extension is used

Our team are reviewing your issue and we will get back when there is a meaningful update to share.

Thanks for your patience.

@vjgee any progress on this issue ??

Are you able to access line app directly? Is there any restriction in your location?

Can you check our https://demo-app.web3auth.io/ app and choose line to login? I am able to login without issues.

after updating now it redirected to the login but got same issue with login

@vjgee please check the issue properly and provide us the reasonbable fix we are trying with every possible fix that you are telling us but no progress

Can you share your applicaiton URL so I can check the behavior with my LINE login account?