fix: remove refreshingTokensOIDC method is not used in repository

This commit is contained in:
dab246
2026-02-05 13:57:41 +07:00
committed by Dat H. Pham
parent 87115ed5a5
commit eb1805d010
4 changed files with 0 additions and 48 deletions
@@ -28,13 +28,6 @@ abstract class AuthenticationOIDCDataSource {
Future<OIDCConfiguration> getStoredOidcConfiguration();
Future<TokenOIDC> refreshingTokensOIDC(
String clientId,
String redirectUrl,
String discoveryUrl,
List<String> scopes,
String refreshToken);
Future<bool> logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery);
Future<void> authenticateOidcOnBrowser(
@@ -103,24 +103,6 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
}).catchError(_cacheExceptionThrower.throwException);
}
@override
Future<TokenOIDC> refreshingTokensOIDC(
String clientId,
String redirectUrl,
String discoveryUrl,
List<String> scopes,
String refreshToken
) {
return Future.sync(() async {
return await _authenticationClient.refreshingTokensOIDC(
clientId,
redirectUrl,
discoveryUrl,
scopes,
refreshToken);
}).catchError(_exceptionThrower.throwException);
}
@override
Future<bool> logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery) {
return Future.sync(() async {
@@ -65,22 +65,6 @@ class AuthenticationOIDCRepositoryImpl extends AuthenticationOIDCRepository {
return _oidcDataSource.persistOidcConfiguration(oidcConfiguration);
}
@override
Future<TokenOIDC> refreshingTokensOIDC(
String clientId,
String redirectUrl,
String discoveryUrl,
List<String> scopes,
String refreshToken
) {
return _oidcDataSource.refreshingTokensOIDC(
clientId,
redirectUrl,
discoveryUrl,
scopes,
refreshToken);
}
@override
Future<bool> logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery) {
return _oidcDataSource.logout(tokenId, config, oidcRescovery);
@@ -28,13 +28,6 @@ abstract class AuthenticationOIDCRepository {
Future<OIDCConfiguration> getStoredOidcConfiguration();
Future<TokenOIDC> refreshingTokensOIDC(
String clientId,
String redirectUrl,
String discoveryUrl,
List<String> scopes,
String refreshToken);
Future<bool> logout(TokenId tokenId, OIDCConfiguration config, OIDCDiscoveryResponse oidcRescovery);
Future<void> authenticateOidcOnBrowser(