saleor

auth-sdk: Add Authentication to Saleor Storefronts

Saleor Auth SDK adds authentication and authorization to storefronts using the Saleor GraphQL API. It supports Next.js App Router and Pages Router integrations, with Apollo Client, urql, and OpenID Connect examples.

Stars
28
Forks
20
Stars, last 30 days
+0
Last commit
1.1 years ago
Contributors
11

Our take

Inactiveno commits in over a year

Health score

27/100

How it is scored
Activity
19
Community
49
Issues
21
Pull requests
20

+0 stars in the last 30 days

This is a focused Saleor storefront authentication library with integrations for common Next.js and GraphQL client setups, but its measured inactivity makes current maintenance worth verifying before adoption.

Good fit if

  • Your storefront uses Saleor and you want its auth client to supply authenticated GraphQL requests.
  • Your app uses Next.js with Apollo Client, urql, or the documented App Router cookie storage.
  • You can validate the SDK against your Saleor and Next.js versions before relying on it.

Look elsewhere if

  • You need a general-purpose authentication SDK not tied to Saleor.
  • Your team requires evidence of recent commits, release activity, or issue handling before adopting a dependency.
All health signals
Last commit2025-09-23 (1.1 years ago)
Commits, last 90 days0
Releases, last 12 months0 (latest 1.0.3, 2025-09-17)
Contributors11 (top contributor: 58% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age3 years

Checked on 2026-10-30 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

28

Forks

21

Change since Nov 22, 2026: 0 stars·0 forks

Overview

Saleor Auth SDK is a TypeScript library built on the Saleor GraphQL API for adding authentication and authorization to Saleor storefronts. It handles token-based sign-in and authenticated API requests, so storefront developers can connect customer accounts to their Saleor-backed shopping experiences.

The README documents Next.js App Router support for Next.js 13, 14, and 15, plus Pages Router integrations with Apollo Client or urql. It also shows an OpenID Connect flow. The project describes its gzipped bundle as below 3 kB.

Key Features

  • Create a Saleor auth client and use its authenticated fetchWithAuth for GraphQL requests.
  • Sign in, sign out, and reset passwords through the auth client or React context.
  • Store access and refresh tokens in Next.js server cookies, with separate synchronous and asynchronous storage helpers for different Next.js versions.
  • Integrate authentication with Apollo Client or urql in Next.js Pages Router apps.
  • Use the useAuthChange hook to coordinate sign-in and sign-out with GraphQL client data refreshes.
  • Start OpenID Connect authentication and handle its callback with the Next.js helper.

Use Cases

  • Saleor storefront teams adding customer login and authenticated GraphQL queries to a Next.js app.
  • Teams using Apollo Client or urql who need authentication events to refresh or reset cached data.
  • Next.js App Router projects that need server-side token storage in cookies, with storage configured for their Next.js version.
  • Storefronts that authenticate customers through a Saleor-configured OpenID Connect provider.

What you need

Detected in the repository

  • Node.js >=22.14.0 (from package.json)
  • A test suite and automated checks on GitHub Actions

Getting Started

Install the package:

npm install @saleor/auth-sdk

Then create a client with your Saleor API URL and connect its authenticated fetch to your GraphQL client. See the README and Saleor authentication documentation for framework-specific setup.

License in Plain Words

No standard license was detected. Without a license, the default copyright rules apply: you may read the code, but not reuse it. Check the repository or ask the authors.

Considerations

The project is marked inactive: the measured data shows no commits in over a year, no releases in the past year, and no issues closed or pull requests merged in the recent measurement period. Although the repository has contributors beyond its top contributor, recent activity does not establish whether compatibility fixes are being maintained. The package requires Node.js 22.14.0 or newer according to its package.json. The supplied repository data does not specify a license, so check the repository before using it in a project with licensing requirements.

Found this useful?

Share it with someone who would like auth-sdk.