@saleor/sdk
Version:
Saleor TS SDK
16 lines (15 loc) • 891 B
TypeScript
import { GraphQLRequest } from "msw";
import { ExternalObtainAccessTokensMutation } from "../src/apollo/types";
import { SaleorClient } from "../src/core";
export declare const removeBlacklistedVariables: (obj: {}) => {};
export declare const testTokenSecret = "secret";
export declare const testRefreshToken = "sSrkI91Yyho52LTNWLuh6WkPwC5NAP49n1TdB4Oh4Hrw7NuQ1oj7ga3j5aE82b2O";
export declare const createTestToken: (expirationPeriodInSeconds?: number) => string;
export declare const verifyTestToken: (token: string) => boolean;
export declare const verifyAuthorization: (request: GraphQLRequest<any>) => boolean;
interface CallbackQueryParams {
code: string;
state: string;
}
export declare const loginWithExternalPlugin: (saleor: SaleorClient, callbackQueryParams: CallbackQueryParams) => Promise<ExternalObtainAccessTokensMutation | null | undefined>;
export {};