Files
immich/mobile/openapi/lib/auth/oauth.dart
T
shenlong-tanwen 43e0cc7392 dart generator
2026-05-31 10:08:03 +05:30

19 lines
475 B
Dart
Generated

// AUTO-GENERATED FILE, DO NOT MODIFY!
//
part of openapi.api;
/// OAuth bearer-token authentication, applied as an `Authorization: Bearer ...`
/// header.
class OAuth implements Authentication {
OAuth({this.accessToken = ''});
String accessToken;
@override
Future<void> applyToParams(List<QueryParam> queryParams, Map<String, String> headerParams) async {
if (accessToken.isNotEmpty) {
headerParams['Authorization'] = 'Bearer $accessToken';
}
}
}