axauth 3.1.4 → 3.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,4 +90,4 @@ interface RefreshBlobOptions extends RefreshOptions {
|
|
|
90
90
|
*/
|
|
91
91
|
declare function refreshBlob(blob: unknown, options: RefreshBlobOptions): Promise<RefreshBlobResult>;
|
|
92
92
|
export { refreshAndPersist, refreshBlob, refreshCredentials };
|
|
93
|
-
export type { RefreshAndPersistResult,
|
|
93
|
+
export type { RefreshAndPersistResult, RefreshBlobResult, RefreshOptions, RefreshResult, };
|
package/dist/commands/auth.js
CHANGED
|
@@ -37,7 +37,9 @@ async function handleAuthToken(options) {
|
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
39
39
|
// Extract the token based on credential type
|
|
40
|
-
const token = await getAccessToken(agentId, creds, {
|
|
40
|
+
const token = await getAccessToken(agentId, creds, {
|
|
41
|
+
provider: options.provider,
|
|
42
|
+
});
|
|
41
43
|
if (!token) {
|
|
42
44
|
const providerHint = options.provider
|
|
43
45
|
? ` for provider '${options.provider}'`
|