From 5653596bfd11eed96b62bd87d80e4018fc270243 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 11 Jun 2024 14:31:11 +0900 Subject: [PATCH] feat: add getTokenStorage method to AWSWebCore and AzureWebCore --- src/core/aws-web.core.ts | 9 +++++++++ src/core/azure-web.core.ts | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/core/aws-web.core.ts b/src/core/aws-web.core.ts index 61f1d65..62fd942 100644 --- a/src/core/aws-web.core.ts +++ b/src/core/aws-web.core.ts @@ -73,6 +73,15 @@ export class AWSWebCore implements WebCoreService { return 'build'; } + /** + * Retrieves the token storage service. + * + * @returns {AWSStorageService} - The storage service that manages OAuth tokens. + */ + getTokenStorage(): AWSStorageService { + return this.tokenStorage; + } + /** * Builds a request using HttpRequestBuilder without Credentials. * @param {AxiosRequestConfig} config - The Axios request configuration. diff --git a/src/core/azure-web.core.ts b/src/core/azure-web.core.ts index 33228f8..7f63224 100644 --- a/src/core/azure-web.core.ts +++ b/src/core/azure-web.core.ts @@ -41,6 +41,15 @@ export class AzureWebCore implements WebCoreService { return 'has-token'; } + /** + * Retrieves the token storage service. + * + * @returns {AzureStorageService} - The storage service that manages OAuth tokens. + */ + getTokenStorage(): AzureStorageService { + return this.tokenStorage; + } + /** * Builds a request using HttpRequestBuilder without Credentials. * @param {AxiosRequestConfig} config - The Axios request configuration.