getCustomData static method
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);
}