cc012f32 years ago18 lines · 628 B| 1 | // |
| 2 | // AUTO-GENERATED FILE, DO NOT MODIFY! |
| 3 | // |
| 4 | |
| 5 | import 'package:dio/dio.dart'; |
| 6 | |
| 7 | abstract class AuthInterceptor extends |
| 8 | /// Get auth information on given route for the given type. |
| 9 | /// Can return an empty list if type is not present on auth data or |
| 10 | /// if route doesn't need authentication. |
| 11 | List<Map<String |
| 12 | if (route.extra.containsKey( |
| 13 | final auth = route.extra['secure' |
| 14 | return auth.where((secure) => |
| 15 | } |
| 16 | return []; |
| 17 | } |
| 18 | } |