getAccount method

  1. @override
Future<Account> getAccount(
  1. Session session
)
override

Get the user account

Many of Nakama’s features are accessible with an authenticated session, like fetching a user account.

Implementation

@override
Future<model.Account> getAccount(model.Session session) async {
  final res = await _client.getAccount(
    api.Empty(),
    options: _getSessionCallOptions(session),
  );

  return model.Account.fromDto(res);
}