[Archive] Login with LINE not redirect back to iOS app with error openlogin-sdk.redirectUrl is not set

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 11/9/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.


Hi,
I am developing an iOS app which let user login with Web3Auth. It works fine with social provider like Google, Facebook, Twitter. But with Line app, after user authorize login, Web3Auth does not redirect back to our login screen app like other providers does but it show an error like:
Error: openlogin-sdk.init or openlogin-sdk.redirectUrl is not set
I don't know if I have to do any special configurations for Line? Is anyone has this issue?
I also tried the example project of Web3Auth and it has the same issue.
I have searched for the discussion here but seem like no one has this issue but me.
This is my code for this feature

func connectWithWeb3Auth(presenter: UIViewController, provider: Web3AuthProvider, completion: @escaping LoginCompletion) {
        Web3Auth(
            W3AInitParams(
                clientId: AuthenticationManager.Constant.Web3AuthServiceId,
                network: .mainnet,
                whiteLabel: W3AWhiteLabelData(
                    name: "Web3Auth",
                    defaultLanguage: Locale.current.languageCode,
                    dark: false
                )
            ))
            .login(W3ALoginParams(loginProvider: provider)) {
                switch $0 {
                case .success(let result):
                    if let userInfo = result.userInfo, let idToken = userInfo.idToken {
                        self.loginWithWeb3(idToken: idToken, completion)
                    } else {
                        completion(.failure(SocialsAuth.defaultError))
                    }
                case .failure(_):
                    break
                }
            }
    }


Originally posted by: quocloihd

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/847