All Projects → reactql → Example Auth

reactql / Example Auth

User auth, session & JWT example for ReactQL

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Example Auth

Graphjin
GraphJin - Build APIs in 5 minutes with GraphQL. An instant GraphQL to SQL compiler.
Stars: ✭ 1,264 (+2378.43%)
Mutual labels:  graphql, graphql-server, sql
Nestjs Graphql
nest-js starter which implement graphql module
Stars: ✭ 111 (+117.65%)
Mutual labels:  graphql, sequelize, jwt
Crate
👕 👖 📦 A sample web and mobile application built with Node, Express, React, React Native, Redux and GraphQL. Very basic replica of stitchfix.com / krate.in (allows users to get monthly subscription of trendy clothes and accessories).
Stars: ✭ 2,281 (+4372.55%)
Mutual labels:  graphql, sequelize, jwt
Eschool
eSchool Microservice based Solution
Stars: ✭ 29 (-43.14%)
Mutual labels:  graphql, graphql-server
Graphql Spqr
Java 8+ API for rapid development of GraphQL services
Stars: ✭ 843 (+1552.94%)
Mutual labels:  graphql, graphql-server
Nextjs Sequelize
Next.js With Sequelize Web Application, a Full-Stack Web App Development Boilerplate. https://medium.com/@defrian.yarfi/next-js-with-sequelize-web-application-a-full-stack-web-development-a0051074e998
Stars: ✭ 21 (-58.82%)
Mutual labels:  sequelize, jwt
Silhouette
Silhouette is a framework agnostic authentication library for Scala that supports several authentication methods, including OAuth2, OpenID Connect, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 18 (-64.71%)
Mutual labels:  jwt, session
Sql To Graphql Schema Generator
⚛️ Generate GraphQL Scheme Online From SQL Query - https://sql-to-graphql.now.sh/
Stars: ✭ 32 (-37.25%)
Mutual labels:  graphql, sql
Fullstack Graphql
🌈 Simple Fullstack GraphQL Application. API built with Express + GraphQL + Sequelize (supports MySQL, Postgres, Sqlite and MSSQL). WebApp built with React + Redux to access the API. Written in ES6 using Babel + Webpack.
Stars: ✭ 955 (+1772.55%)
Mutual labels:  graphql, graphql-server
Orionjs
A new framework for serverside GraphQL apps
Stars: ✭ 35 (-31.37%)
Mutual labels:  graphql, graphql-server
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (+1817.65%)
Mutual labels:  graphql, graphql-server
Lighthouse Utils
An add-on to Lighthouse to auto-generate CRUD actions from types https://github.com/nuwave/lighthouse
Stars: ✭ 26 (-49.02%)
Mutual labels:  graphql, graphql-server
Graphql Moltin Server
⚛️ GraphQL + Moltin + GraphQL Yoga 🧘
Stars: ✭ 22 (-56.86%)
Mutual labels:  graphql, graphql-server
Turbulette
😴 Turbulette - A batteries-included framework to build high performance, fully async GraphQL APIs
Stars: ✭ 29 (-43.14%)
Mutual labels:  graphql, graphql-server
Graphql Server Demo
GraphQL server demo with nodejs
Stars: ✭ 19 (-62.75%)
Mutual labels:  graphql, graphql-server
Graphql Modules
Enterprise Grade Tooling For Your GraphQL Server
Stars: ✭ 962 (+1786.27%)
Mutual labels:  graphql, graphql-server
Graphqldockerproxy
A generic Graphql API for Docker and Kubernetes
Stars: ✭ 38 (-25.49%)
Mutual labels:  graphql, graphql-server
Rdbms To Graphql
A Java CLI program that generates a GraphQL schema from a JDBC data source.
Stars: ✭ 44 (-13.73%)
Mutual labels:  graphql, sql
Graphql Kotlin
Libraries for running GraphQL in Kotlin
Stars: ✭ 1,030 (+1919.61%)
Mutual labels:  graphql, graphql-server
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+1633.33%)
Mutual labels:  graphql, graphql-server

Users, sessions and auth

This ReactQL project demonstrates one possible way you might implement user/password authorisation.

It also adds Passport.js with a sample Facebook login.

Features

  • User sign-up form, with field validation (email validation via isemail)
  • Passport.js integration
  • User/password and Facebook login
  • In-memory SQLite DB with users and sessions tables, running via Sequelize v4
  • Server-side sessions. Deleting the DB entry remotely kills the session
  • Password hashing via bcrypt
  • GraphQL types representing users, sessions, JWT tokens, field errors
  • Semantic UI React components and styling
  • JWT tokens -- stored in both localStorage and via cookies, for subsequent SSR requests to render authenticated content on the server side, and for stateless environments such as mobile
  • No modifications to the kit -- pure userland code

Video walk-through

I've uploaded a 28 minute video on YouTube, which explains the concepts used in this project entitled User authentication with GraphQL + DB + JWT

Find it here: https://youtu.be/s1p4R4rzWUs

Kit version

Based on ReactQL kit v2.8.5

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].