1
0
forked from baron/baron-sso
Files
baron-sso/userfront/lib/features/auth/domain/consent_error_routing.dart

6 lines
208 B
Dart

import 'package:userfront/core/services/auth_proxy_service.dart';
bool shouldRouteConsentErrorToErrorScreen(Object error) {
return error is AuthProxyException && error.errorCode == 'tenant_not_allowed';
}