getCustomData static method

Future<AuthResult> getCustomData(
  1. String userId
)

get user's custom data. custom field should be defined via Authing console.

Implementation

static Future<AuthResult> getCustomData(String userId) async {
  final Result result =
      await get('/api/v2/udfs/values?targetType=USER&targetId=' + userId);
  if (result.data["data"] is List) {
    currentUser?.setCustomData(result.data["data"] as List);
  }
  return AuthResult(result);
}