odds_account_sdk 1.0.0-dev.4 odds_account_sdk: ^1.0.0-dev.4 copied to clipboard
Odds client side account authentication and authorization SDK
Odds client side account authentication and authorization SDK.
Features #
OddsHorizon client side account SDK.
Getting started #
Add dependency #
odds_account_sdk: ^1.0.0-dev.4
Usage #
import 'package:odds_account_sdk/client.dart';
then you can create a client instance to handle user register or login.
final client = OddsAccountClient.authing("authing_user_pool_id", "authing_app_id");
final registerResult = await client.registerByUserName("username", "password");
if (!registerResult.isSuccess()) {
// error handling
}
now, if register or login success, you can put the AuthInfo.idToken
into
grpc's metadata to access odds services.
registerResult.idToken