Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

anandaroop/nextjs-artsy-auth

Repository files navigation

Note Archiving this app. Patterns have been superseded by artsy/forque

Next.js Artsy Auth

pumpkins

A proof-of-concept Next.js app that can:

  • Authenticate with Gravity and create a user session
  • Support two-factor authentication
  • Support Vercel's SWR for data fetching with caching, deduping, revalidating etc
  • Provide custom hooks (useGravity, useMetaphysics) to further simplify data fetching from Artsy sources
  • Render some sample pages using data from Gravity and Metaphysics

➽ See the step-by-step commit history to see how this was put together

Use this app as a starter

You may use this app as a starting point for your own Next app by using the yarn create command as follows:

yarn create next-app my-artsy-nextjs-app --example https://github.com/anandaroop/nextjs-artsy-auth

cp .env.local.example .env.local

This uses the create-next-app command to create a new Next.js app, configured the same was as this one. You need only update .env.local with credentials for a valid Gravity ClientApplication.

About

NextJS with Gravity authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published