From eb1805d01094047e4d58248ce22ae03e2034904b Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 5 Feb 2026 13:57:41 +0700 Subject: [PATCH] fix: remove `refreshingTokensOIDC` method is not used in repository --- .../authentication_oidc_datasource.dart | 7 ------- .../authentication_oidc_datasource_impl.dart | 18 ------------------ .../authentication_oidc_repository_impl.dart | 16 ---------------- .../authentication_oidc_repository.dart | 7 ------- 4 files changed, 48 deletions(-) diff --git a/lib/features/login/data/datasource/authentication_oidc_datasource.dart b/lib/features/login/data/datasource/authentication_oidc_datasource.dart index 6083cf350..becc20075 100644 --- a/lib/features/login/data/datasource/authentication_oidc_datasource.dart +++ b/lib/features/login/data/datasource/authentication_oidc_datasource.dart @@ -28,13 +28,6 @@ abstract class AuthenticationOIDCDataSource { Future getStoredOidcConfiguration(); - Future refreshingTokensOIDC( - String clientId, - String redirectUrl, - String discoveryUrl, - List scopes, - String refreshToken); - Future logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery); Future authenticateOidcOnBrowser( diff --git a/lib/features/login/data/datasource_impl/authentication_oidc_datasource_impl.dart b/lib/features/login/data/datasource_impl/authentication_oidc_datasource_impl.dart index 5edfd5b59..3bf3d20fc 100644 --- a/lib/features/login/data/datasource_impl/authentication_oidc_datasource_impl.dart +++ b/lib/features/login/data/datasource_impl/authentication_oidc_datasource_impl.dart @@ -103,24 +103,6 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource { }).catchError(_cacheExceptionThrower.throwException); } - @override - Future refreshingTokensOIDC( - String clientId, - String redirectUrl, - String discoveryUrl, - List scopes, - String refreshToken - ) { - return Future.sync(() async { - return await _authenticationClient.refreshingTokensOIDC( - clientId, - redirectUrl, - discoveryUrl, - scopes, - refreshToken); - }).catchError(_exceptionThrower.throwException); - } - @override Future logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery) { return Future.sync(() async { diff --git a/lib/features/login/data/repository/authentication_oidc_repository_impl.dart b/lib/features/login/data/repository/authentication_oidc_repository_impl.dart index f0ee0f7d8..c4dcc4fc7 100644 --- a/lib/features/login/data/repository/authentication_oidc_repository_impl.dart +++ b/lib/features/login/data/repository/authentication_oidc_repository_impl.dart @@ -65,22 +65,6 @@ class AuthenticationOIDCRepositoryImpl extends AuthenticationOIDCRepository { return _oidcDataSource.persistOidcConfiguration(oidcConfiguration); } - @override - Future refreshingTokensOIDC( - String clientId, - String redirectUrl, - String discoveryUrl, - List scopes, - String refreshToken - ) { - return _oidcDataSource.refreshingTokensOIDC( - clientId, - redirectUrl, - discoveryUrl, - scopes, - refreshToken); - } - @override Future logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery) { return _oidcDataSource.logout(tokenId, config, oidcRescovery); diff --git a/lib/features/login/domain/repository/authentication_oidc_repository.dart b/lib/features/login/domain/repository/authentication_oidc_repository.dart index 17093c5b6..cd75e16af 100644 --- a/lib/features/login/domain/repository/authentication_oidc_repository.dart +++ b/lib/features/login/domain/repository/authentication_oidc_repository.dart @@ -28,13 +28,6 @@ abstract class AuthenticationOIDCRepository { Future getStoredOidcConfiguration(); - Future refreshingTokensOIDC( - String clientId, - String redirectUrl, - String discoveryUrl, - List scopes, - String refreshToken); - Future logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery); Future authenticateOidcOnBrowser(