@agnostack/next-shopify
Version:
Please contact agnoStack via info@agnostack.com for any questions
32 lines • 931 B
TypeScript
export const decodeJWT: typeof jwt_decode;
export function getSanitizedShopData(shop: any, customDomains: any): {
shop: string | undefined;
store_name: string;
};
export function sanitizeShop(shop: any, { throwOnInvalid, customDomains }?: {
throwOnInvalid: any;
customDomains: any;
}): string | undefined;
export function ensureShop(store: any, { throwOnInvalid, ...params }?: {
throwOnInvalid: any;
}): string | undefined;
export function isTokenExpired(session: any): boolean;
export function decodeSessionToken(token: any): {
decoded?: undefined;
token?: undefined;
dest?: undefined;
sid?: undefined;
shop?: undefined;
host?: undefined;
store_name?: undefined;
} | {
decoded: unknown;
token: any;
dest: any;
sid: any;
shop: string | undefined;
host: any;
store_name: string;
};
import jwt_decode from 'jwt-decode';
//# sourceMappingURL=shopify.d.ts.map