tinkoff_id_web

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

tinkoff id web

Features #
The package allows you to receive a set of social tokens from the Tinkoff ID system of Tinkoff Bank.
Getting started #
Android requirements:

compileSdkVersion >= 32
minSdkVersion >= 19

Usage #
class TinkoffIdWebViewScreen extends StatelessWidget {
const TinkoffIdWebViewScreen({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: tinkoffYellow,
),
body: TinkoffIdWebView(
clientId: 'youClientId',
mobileRedirectUri: 'tmr://tinkoff-mobile-redirect',
clearCookies: true,
showProgressIndicator: true,
onWebViewFinished: (result) {
if (result.isSuccess) {
print(result.tokenPayload.accessToken);
print(result.tokenPayload.refreshToken);
} else {
print(result.message);
switch (result.failureValue) {
case TinkoffIdFailure.cancelledByUser:
// TODO: Handle this case.
break;
case TinkoffIdFailure.webResourceError:
// TODO: Handle this case.
break;
case TinkoffIdFailure.noCodeInRedirectUri:
// TODO: Handle this case.
break;
case TinkoffIdFailure.apiCallError:
// TODO: Handle this case.
break;
}
}
},

),
);
}
}
copied to clipboard
Additional information #
For more information, support, or to report bugs or suggest new features.
https://github.com/kodefabrique/tinkoff_id_web

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.