Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 567 Bytes

File metadata and controls

25 lines (15 loc) · 567 Bytes

Example: Auth in Next.js using OpenID Connect and Apollo Client

Tip

Questions or issues? Check our discord channel for help.

Getting Started

You need to set up the OpenID Connect plugin in your Saleor dashboard.

Copy .env.example to .env and set your Saleor instance URL with the NEXT_PUBLIC_SALEOR_URL environment variable.

Install dependencies:

npm i

Run the development server:

npm run dev

Open http://localhost:5375 with your browser to see the result.