Web3auth google signin with drive as scope

I am trying to do a auth with google where i want to access the google drive appDataFolder and which is why i am passing the scope but when i try to login after selecting account giving permissions i get error

Could not get result from torus nodes \n Error occurred while verifying params invalid payload parameters",“errorStack”:“Error: Could not get result from torus nodes \n Error occurred while verifying params invalid payload parameters\n at tt (Web3Auth)\n at Web3Auth Error”,“createdAt”:"26/12/2023,

Here is the code i am using

    Web3AuthResponse response = await Web3AuthFlutter.login(
          LoginParams(
            loginProvider: Provider.google,
            extraLoginOptions: ExtraLoginOptions(
              scope: "https://www.googleapis.com/auth/drive.appdata"
            ),
          ),
        );

Hey @vaibhavvartak332

Are you using a custom verifier or the default Google we provide with the SDK?

If default, you’ll have to create a Custom Google verifier and request the scope. Also, take a look at Configure the OAuth consent screen and choose scopes  |  Google Workspace  |  Google for Developers to see how the scope is configured.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.