UNPKG

usimple-saleor-sdk

Version:

This package contains all queries and mutations that are used in our sample storefront. It can be used for semi-custom or fully-custom (with ability to extend existing queries) storefront solutions.

13 lines (12 loc) 579 B
import { ApolloLink } from "apollo-link"; import { GraphQLError } from "graphql"; export declare enum JWTError { invalid = "InvalidTokenError", invalidSignature = "InvalidSignatureError", expired = "ExpiredSignatureError" } export declare function isJwtError(error: GraphQLError): boolean; export declare function getAuthToken(): string | null; export declare function setAuthToken(token: string): void; export declare const invalidTokenLinkWithTokenHandler: (tokenExpirationCallback: () => void) => ApolloLink; export declare const authLink: ApolloLink;