@forge/api
Advanced tools
Comparing version 2.5.0 to 2.6.0-next.0
# @forge/api | ||
## 2.6.0-next.0 | ||
### Minor Changes | ||
- 8571c05: Add support for multiple accounts in external authentication | ||
## 2.5.0 | ||
@@ -4,0 +10,0 @@ |
@@ -29,6 +29,4 @@ "use strict"; | ||
requestGraph: wrapRequestGraph(wrapFetch(api.asUser().requestGraph)), | ||
withProvider: (provider, remoteName) => { | ||
const { hasCredentials, requestCredentials, fetch: withProviderFetch } = api | ||
.asUser() | ||
.withProvider(provider, remoteName); | ||
withProvider: (provider, remoteName, tokenId) => { | ||
const { hasCredentials, requestCredentials, listCredentials, fetch: withProviderFetch } = api.asUser().withProvider(provider, remoteName, tokenId); | ||
const wrappedRequestRemote = wrapWithRouteUnwrapper(wrapFetch(withProviderFetch)); | ||
@@ -38,2 +36,3 @@ return { | ||
requestCredentials, | ||
listCredentials, | ||
fetch: wrappedRequestRemote | ||
@@ -40,0 +39,0 @@ }; |
@@ -21,6 +21,7 @@ import { RequestInit, Response } from 'node-fetch'; | ||
requestCredentials: () => Promise<boolean>; | ||
listCredentials: () => Promise<string[]>; | ||
fetch: FetchMethodAllowingRoute; | ||
} | ||
export interface ExternalAuthFetchMethodsProvider { | ||
withProvider: (provider: string, remoteName?: string) => ExternalAuthFetchMethods; | ||
withProvider: (provider: string, remoteName?: string, tokenId?: string) => ExternalAuthFetchMethods; | ||
} | ||
@@ -27,0 +28,0 @@ export interface StorageMethods { |
{ | ||
"name": "@forge/api", | ||
"version": "2.5.0", | ||
"version": "2.6.0-next.0", | ||
"description": "Forge API methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
44056
2