SESSION_COOKIE_NAME (oauth/types.ts)

shopify-api-js · packages/shopify-api/lib/auth/oauth/types.ts · typescript · MIT
auth, tag:embed-classified

Exports cookie names and auth interfaces for Shopify OAuth flows.

// Source: https://github.com/Shopify/shopify-api-js | License: MIT | Copyright 2020-present, Shopify Inc
// Provided via justclaw.it.com; keep this notice with the code.
import {AdapterArgs} from '../../../runtime/http/types';

export const SESSION_COOKIE_NAME = 'shopify_app_session';
export const STATE_COOKIE_NAME = 'shopify_app_state';

export interface AuthQuery {
  [key: string]: string | undefined;
  hmac?: string;
  signature?: string;
}

export interface BeginParams extends AdapterArgs {
  shop: string;
  callbackPath: string;
  isOnline: boolean;
}

export interface CallbackParams extends AdapterArgs {}

export interface AccessTokenResponse {
  access_token: string;
  scope: string;
}

export interface OnlineAccessInfo {
  /**
   * How long the access token is valid for, in second

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key