TF-607 Implement logoutOidc action when user click signOut

This commit is contained in:
dab246
2022-06-03 11:34:18 +07:00
committed by Dat H. Pham
parent 45fbbc6a6f
commit ced3fecd1f
16 changed files with 184 additions and 20 deletions
@@ -71,7 +71,11 @@ class AuthenticationOIDCDataSourceImpl extends AuthenticationOIDCDataSource {
}
@override
Future<void> logout(TokenId tokenId, OIDCConfiguration config) {
throw UnimplementedError();
Future<bool> logout(TokenId tokenId, OIDCConfiguration config) {
return Future.sync(() async {
return await _oidcHttpClient.logoutOidc(tokenId, config);
}).catchError((error) {
throw error;
});
}
}