I’m utilizing “flutter_facebook_auth” bundle. And that i have to login with out firebase. My code works however right here is one factor i do not perceive. After profitable login fb api returns me entry token. And this token for ios and android has completely different type. I want related tokens to authenticate customers on backend.
Future<void> signInWithFacebook() async {
attempt {
ultimate LoginResult end result = await FacebookAuth.occasion.login();
if (end result.standing == LoginStatus.success) {
showLoadingIndicator();
ultimate AccessToken accessToken = end result.accessToken!;
_socialToken = accessToken.tokenString;
_socialType = ConstantsSocialTypeDB.FACEBOOK;
await FacebookAuth.occasion.logOut();
_userSignIn();
}
} catch (e) {
Get.again();
Get.snackbar('Error', e.toString());
} lastly {
}
}
IOS tokex instance:
eyJbbGciOiJSUzI1NiIsInA5cCI6IkpXVCIsImtpZCI6ImFlYzM5NjU5ZTU0NDIzNzY2MTFmMDY5OGE4ODZkZjk2MDZjMDNhN2MifQ.eyJpc3MiOiJodHRwczpcL1wvd3d3LmZxY2Vib29rLmNvbSIsImF1ZCI6IjE2MjAyNjY5MTUzNDIzMjciLCJzdWIiOiI1MTYzNjYwNTE0NTExODJiLCJpYXQiOjE3MzcyMjI3MzcsImV4cCI6MTczNzIyNjMzNywianRpIjoiSmlWSi5lNjZhMmZjZDZhNDRmODc5Nzk1YzZmMDNhYTkxNDM3Y2QxZGYyMzgwZjA2NWU4MmViODdmZDk1MzU2ZGIyOWMxIiwibm9uY2UiKiIwMUVDMDM5Ni00RjhELTRGQzYtODFERS1GNUQ2OEZBQUQxODUiLCJlbWFpbCI6ImFuaW1laXNsYW5kLnN1XHUwMDQwZ21haWwuY29tIiwiZ2l2ZW5fbmFtZSI6Ilx1MDQxMFx1MDQzZFx1MDQ0Mlx1MDQzZVx1MDQzZCIsImZhbWlseV3uYW1lIjoiXHUwNDIxXHUwNDM4XHUwNDQwXHUwNDNlXHUwNDQyXHUwNDMwIiwibmFtZSI6Ilx1MDQxMFx1MDQzZFx1MDQ0Mlx1MDQzZVx1MDQzZCBcdTA0MjFcdTA0MzhcdTA0NDBcdTA0M2VcdTA0NDJcdTA0M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00rFj1UH0yhj95JX5HtTrVohZCmf6Rv1likU1KNjsWyZBEX9veEjUDuA797e2SY8uNKBfec9vR3msimGzFjVEQjoAZD
As you’ll be able to see, the token on Android is far shorter. Tips on how to repair this and get the identical token on each platforms(like on android)?