fix(web): show OAuth login button when disabled ()

* fix(web): show OAuth login button when disable

* update api
This commit is contained in:
Alex 2023-04-08 22:18:22 -05:00 committed by GitHub
parent 983abf5e14
commit e9c171f7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 802 additions and 78 deletions
mobile/openapi/lib/api

View file

@ -16,7 +16,10 @@ class OAuthApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /oauth/callback' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -45,6 +48,8 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -63,7 +68,10 @@ class OAuthApi {
return null;
}
/// Performs an HTTP 'POST /oauth/config' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [OAuthConfigDto] oAuthConfigDto (required):
@ -92,6 +100,8 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthConfigDto] oAuthConfigDto (required):
@ -110,7 +120,10 @@ class OAuthApi {
return null;
}
/// Performs an HTTP 'POST /oauth/link' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -139,6 +152,8 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -157,7 +172,9 @@ class OAuthApi {
return null;
}
/// Performs an HTTP 'GET /oauth/mobile-redirect' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> mobileRedirectWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/oauth/mobile-redirect';
@ -183,6 +200,7 @@ class OAuthApi {
);
}
///
Future<void> mobileRedirect() async {
final response = await mobileRedirectWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -190,7 +208,9 @@ class OAuthApi {
}
}
/// Performs an HTTP 'POST /oauth/unlink' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> unlinkWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/oauth/unlink';
@ -216,6 +236,7 @@ class OAuthApi {
);
}
///
Future<UserResponseDto?> unlink() async {
final response = await unlinkWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {