Next Sanity Facebook Auth

🔐 Minimal example showing Facebook auth flow for Sanity.
Alternatives To Next Sanity Facebook Auth
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Next Auth15,3642173a day ago567August 01, 2022214iscTypeScript
Authentication for the Web.
React Native Firebase10,7044379a day ago184September 17, 202246otherJavaScript
🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
Nhost6,437920 hours ago91September 20, 2022161mitTypeScript
The Open Source Firebase Alternative with GraphQL.
Casdoor5,612
20 hours ago432September 25, 2022113apache-2.0Go
An open-source Identity and Access Management (IAM) / Single-Sign-On (SSO) platform with web UI supporting OAuth 2.0, OIDC, SAML and CAS
Material Kit React4,432
15 days ago2mitJavaScript
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Useauth2,582113 months ago85January 26, 2021141mitTypeScript
The simplest way to add authentication to your React app. Supports various providers.
React Redux Firebase2,543795262 months ago165November 23, 2021173mitJavaScript
Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
Nango2,38333 days ago10August 19, 202225otherTypeScript
Get OAuth tokens for APIs - fast & secure.
React Most Wanted2,340423 days ago97August 31, 202212mitJavaScript
React starter kit with "Most Wanted" application features
Redux Auth Wrapper2,177778448 months ago26March 21, 202125mitJavaScript
A React Higher Order Component (HOC) for handling Authentication and Authorization with Routing and Redux
Alternatives To Next Sanity Facebook Auth
Select To Compare


Alternative Project Comparisons
Readme

next-sanity-facebook-auth

Minimal working example, showcasing 3rd party authentication through Facebook, between a next.js frontend and a Sanity backend.

Usage

Run npm install in all three subfolders: /api, /auth and /www. Then make sure to add necessary info in /api/.env, /auth/.env and /www/.env. To run the project:

cd api/
npm run dev

cd ../www/
npm run dev

cd ../auth/
npm run dev

Then you need to set permissions for the documents. In the /api folder, run node permissions/index.js.

Caveats

This is my first time working with oath, cookies and implementing an authentication flow. So if you see errors, security issues etc. I would love to get some feedback so this can be corrected. Mail/issues/pull requests/whatever.

There is also no error handling in this sample code (wanted to have the example as concise as possible), so this should also be added if you are using this.

Popular Authentication Projects
Popular Reactjs Projects
Popular Security Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Reactjs
Auth
Nextjs
Flow
Oath