SDK
SDK Dart v1.x
2

# getRoles

Loads information about the profile roles.

# Arguments

Copied to clipboard!
getRoles();

# Resolve

Resolves to an array of Role.

# Usage

Copied to clipboard!
await kuzzle
  .auth
  .login(
    'local',
    {
      'username': 'foo',
      'password': 'bar'
    },
  );
KuzzleUser user = await kuzzle
  .auth
  .getCurrentUser();
List<KuzzleProfile> profiles = await user.getProfiles();
List<KuzzleRole> roles = await profiles[0].getRoles();