isValidOrigin property
bool
get
isValidOrigin
Implementation
bool get isValidOrigin {
final authority1 = Uri.parse(UrlConstants.secureDashboard).authority;
final authority2 = Uri.parse(UrlConstants.secureService).authority;
final originAuthority = Uri.parse(origin ?? '').authority;
return originAuthority == authority1 || originAuthority == authority2;
}