Redirecting is not working after a successfull login using Google

I am using flutter to authenticate using web3flutter_auth, the authentication works fine but I couldn’t redirect to my app. here is some discription of the issue.

flutter version: 3.13.0
dart sdk : 3.1.0
web3auth_flutter: ^2.0.3

@yaredyaya16 Welcome Aboard!

Can you share the console logs from the page and your implementation code?

Thank you @vjgee for your fast reply here is my implementation.
for initializing

for login.

android_manifest. intent filter.

since the above issue appeared after the app goes to Chrome, there is not any log displaying on the console.

Can you refresh the page at the point where it gets stuck on loading:

After refreshing the page, you can click the red ! mark to get the logs as shown below:

I got this when I refresh it.

Your issue has been forwarded to our Dev team and will recieve further updates.

@yaredyaya16 Pls share browser console logs.

@yaredyaya16 You can refer to this guide How to debug Android devices?

@yaredyaya16 Something wrong with intent filter scheme. That’s different what you are using in your code. Take reference from below.

Also look out for documentation: Installing PnP Flutter SDK | Documentation | Web3Auth

Here is the chrome console log.

WARNING! You are on testnet. Please set network: ‘mainnet’ in production
redirect:1 Navigation is unreachable: newappyaredsolomon://com.example.new_app/auth#eyJhcHBTdGF0ZSI6IiIsInByaXZLZXkiOiIxYzE0MTYzMjU4Y2YzZGI0MTIyZWUzZTY4N2I0NGVhNzZiMGM1ZGQzNzc1YTQ0NGJmYmFhZmNiNTUzZDA3NmY0Iiwic2Vzc2lvbklkIjoiNDVlOWQ5ZmEyZGRlNGNhYzU5NDU2N2M4Njc1MTM2OGJmY2UyODI5ZGE0NGQ4Njg3YTM5NTUwZThhZmQzMWM2YiIsImNvcmVLaXRLZXkiOiIiLCJjb3JlS2l0RWQyNTUxOVByaXZLZXkiOiIiLCJlZDI1NTE5UHJpdktleSI6IjFjMTQxNjMyNThjZjNkYjQxMjJlZTNlNjg3YjQ0ZWE3NmIwYzVkZDM3NzVhNDQ0YmZiYWFmY2I1NTNkMDc2ZjRiYjRiOGQwNGE4NjMyZDAyMTFkMGNjZmNkYTc3ODEzODBiOWE0MDY0NDIzMzk3ODFkOTc2ZmNjZjJmODkxNjYxIiwidXNlckluZm8iOnsidG91Y2hJR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pPREE1WkdKbU4ySmtNRFZsTW1VMll6WTBZek5tTkRoaU56YzBOR1JtSWl3aWFYTnpJam9pYUhSMGNITTZMeTloY0drdFlYVjBhQzUzWldJellYVjBhQzVwYnlJc0luZGhiR3hsZEhNaU9sdDdJbkIxWW14cFkxOXJaWGtpT2lJd01tWm1ORGRrTVRNMU5qTmxZamM1WVRBNU1qQXhaREppTjJFd1l6UXhNRFV4WlRaak1XUTFObUpqTkdNMU5URTNObUZpTldaaFlUa3laVEUwWXpBek9XTWlMQ0owZVhCbElqb2lkMlZpTTJGMWRHaGZZWEJ3WDJ0bGVTSXNJbU4xY25abElqb2ljMlZqY0RJMU5tc3hJbjFkTENKbGJXRnBiQ0k2SW5saGNtVmtMbk52Ykc5dGIyNUFjbVZxZFhabExtRnBJaXdpYm1GdFpTSTZJbGxoY21Wa0lGTnZiRzl0YjI0aUxDSndjbTltYVd4bFNXMWhaMlVpT2lKb2RIUndjem92TDJ4b015NW5iMjluYkdWMWMyVnlZMjl1ZEdWdWRDNWpiMjB2WVM5QlFXTklWSFJsVDJ4cWFFcGtSVzk1VlhoVWVXMHdlRUV4WW0xb1YxZDFabGxvYzJKTVV6TndOSGRoYm1sbFV6YzljemsyTFdNaUxDSjJaWEpwWm1sbGNpSTZJblJ2Y25Weklpd2lkbVZ5YVdacFpYSkpaQ0k2SW5saGNtVmtMbk52Ykc5dGIyNUFjbVZxZFhabExtRnBJaXdpWVdkbmNtVm5ZWFJsVm1WeWFXWnBaWElpT2lKMGEyVjVMV2R2YjJkc1pTMXNjbU1pTENKbGVIQWlPakUyT1RJNE56YzRNVEI5LlVjS3F3dktQOGtRYU5BaUZGLW5VRWJOc0kyNDdNaDFzUklVOU1yVWRLRzRnbzdkVXJKd3FNSXFJNjllNWRlbGpWTnNkNlJ2TVplUmhJOFhRWkJZQWNnIn19

@gaurav I have updated the android manifest to like this.

and the redirectURL like this.

but still I am facing the same issue

action and category tag still not set in intent filter. Refer to example here: https://github.com/Web3Auth/web3auth-flutter-sdk/tree/master/example

okay thanks @gaurav one question which one did you add to the web3auth dashboard
torusapp://org.torusresearch.flutter.web3authexample/auth
torusapp://org.torusresearch.flutter.web3authexample
?

In above you are using data tag within existing intent filter. Make a new intent fliter tag with action, category and data as mentioned below.

1 Like

@yaredyaya16 Please go through docs carefully. All things have been mentioned there.
Installing PnP Flutter SDK | Documentation | Web3Auth

2 Likes

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