@wix/sdk-types
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -34,2 +34,3 @@ type HostModule<T, H extends Host> = { | ||
wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>; | ||
getActiveToken?: () => string | undefined; | ||
} | ||
@@ -69,2 +70,9 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>; | ||
}>; | ||
/** | ||
* This function is used to get the token that is currently active in the context of the strategy. | ||
* This is useful when direct access to the access token is needed | ||
* (such as getTokenInfo that requires the token in the body of the request). | ||
* @returns the token that is currently active in the context of the strategy | ||
*/ | ||
getActiveToken?: () => string | undefined; | ||
}; | ||
@@ -71,0 +79,0 @@ type BoundAuthenticationStrategy = { |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"license": "UNLICENSED", | ||
@@ -61,3 +61,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "c854d83417d78c1ce56a466e2240fc2d9ea167e2a4541b4b79e57173" | ||
"falconPackageHash": "afea462af817d46a125dccc9e9329bc3c1cb8778bcfbda5664e09896" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34672
468