
* Implement APL 2.0 * Rename RestAPL to SaleorCloud APL * Add mapping helper * Modify Saleor APL documentation * Update rest of the docs * Update the node version in actions * Update fetch mock * Remove node-fetch pkg * Remove console log * Update test after the rebase
6 lines
230 B
TypeScript
6 lines
230 B
TypeScript
import { getJwksUrlFromSaleorApiUrl } from "./urls";
|
|
|
|
export const fetchRemoteJwks = async (saleorApiUrl: string) => {
|
|
const jwksResponse = await fetch(getJwksUrlFromSaleorApiUrl(saleorApiUrl));
|
|
return jwksResponse.text();
|
|
};
|