Skip to content

Commit

Permalink
feat: add getTokenStorage method to AWSWebCore and AzureWebCore
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-lemon committed Jun 11, 2024
1 parent 069b4b2 commit 5653596
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/aws-web.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 9 additions & 0 deletions src/core/azure-web.core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5653596

Please sign in to comment.