My Aim is to not use browsers and make users to feel native flow as much as possible in mobile. How can i do that
Im also Authenticating through Auth0.Still can we use this SDK?
If yes, can use jwt token generated from and get key using
privateKey = await _SingleFactorAuthFlutterPlugin.getKey(LoginParams(
verifier: _verifier,
verifierId: "my@gmail.com",
idToken: credentials.accessToken));
In above code,
verifierId: “my@gmail.com”,should i use my Gmail or from the access token we have to decode sub and use that.
idToken: credentials.accessToken , in this filed shoud i use jwt access token or idtoke?
I used sub in jwt access token and access token after I received the credential from auth0. and getting the error:
I/flutter (13020): main : PlatformException(error, java.util.concurrent.ExecutionException: [null,null,null,null,null], responses: [“{"jsonrpc":"2.0","error":{"code":-32602,"message":"Internal error","data":"Error occurred while verifying paramstimesigned is more than 1m0s ago 2023-11-15 12:33:25 +0000 UTC"},"id":669}\n”,“{"jsonrpc":"2.0","error":{"code":-32602,"message":"Internal error","data":"Error occurred while verifying paramstimesigned is more than 1m0s ago 2023-11-15 12:33:25 +0000 UTC"},"id":770}\n”,“{"jsonrpc":"2.0","error":{"code":-32602,"message":"Internal error","data":"Error occurred while verifying paramstimesigned is more than 1m0s ago 2023-11-15 12:33:25 +0000 UTC"},"id":363}\n”,“{"jsonrpc":"2.0","error":{"code":-32602,"message":"Internal error","data":"Error occurred while verifying paramstimesigned is more than 1m0s ago 2023-11-15 12:33:25 +0000 UTC"},"id":770}\n”,"{"jsonrpc":"2.0","error":{"code":-32602,"message":"Internal er
I/flutter (13020): main : #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
I/flutter (13020): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:310:18)
I/flutter (13020):
I/flutter (13020): #2 SingleFactAuthFlutter.getKey (package:single_factor_auth_flutter/single_factor_auth_flutter.dart:45:11)
I/flutter (13020):
I/flutter (13020): #3 Auth0WalletHandler.getPrivateKey (package:socialpayme/data/handlers/auth0/WalletHandler.dart:40:18)
I/flutter (13020):
Hello @shridhar.c
Yes, you can use SFA flutter with auth0.
Check our document and example application to see how you can utilize auth0 with sfa sdk.
plus, for about the getKey issue,
It seems that you should change your idToken field like this way.
check out our sfa flutter example application. thanks
once you receive credentilas from auth0, you can get private token as bello
LoginParams(
verifier: _verifier, //got from web3auth dash board
verifierId: credentials?.user.sub??“”, since in verifier i created , i selected sub as jwt verifier id as shown in bellow image
idToken: credentials?.idToken??“”)//id token i received from auth0
Note:Make sure you are using new idToke, if id token is being used before , please renew idtoken
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.