checkLoginStatus static method
Implementation
static Future<bool> checkLoginStatus(
bool isLocal, String backendCanisterId) async {
List<Object> validatedDelegation =
await getDelegations(isLocal, backendCanisterId);
if (validatedDelegation.whereType<bool>().first) {
_principalId = validatedDelegation[1].toString();
return true;
} else {
return false;
}
}