{"id":20526521,"url":"https://github.com/reactql/example-auth","last_synced_at":"2025-10-04T07:53:03.128Z","repository":{"id":81121861,"uuid":"103419509","full_name":"reactql/example-auth","owner":"reactql","description":"User auth, session \u0026 JWT example for ReactQL","archived":false,"fork":false,"pushed_at":"2018-05-14T08:14:19.000Z","size":179,"stargazers_count":48,"open_issues_count":2,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T15:11:41.720Z","etag":null,"topics":["graphql","graphql-server","jwt","react","reactjs","sequelize","session","sql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reactql.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-09-13T15:48:20.000Z","updated_at":"2023-09-22T18:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d99984f0-954a-45a8-8c2c-ef6e00f67db6","html_url":"https://github.com/reactql/example-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/reactql/example-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactql%2Fexample-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactql%2Fexample-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactql%2Fexample-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactql%2Fexample-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reactql","download_url":"https://codeload.github.com/reactql/example-auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reactql%2Fexample-auth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283455,"owners_count":25961311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-server","jwt","react","reactjs","sequelize","session","sql"],"created_at":"2024-11-15T23:14:31.503Z","updated_at":"2025-10-04T07:53:03.124Z","avatar_url":"https://github.com/reactql.png","language":"JavaScript","readme":"# Users, sessions and auth\n\nThis ReactQL project demonstrates one possible way you might implement user/password authorisation.\n\nIt also adds [Passport.js](http://passportjs.org/) with a sample Facebook login.\n\n## Features\n\n* User sign-up form, with field validation (email validation via [isemail](https://www.npmjs.com/package/isemail))\n* [Passport.js](http://passportjs.org/) integration\n* User/password and Facebook login\n* In-memory SQLite DB with `users` and `sessions` tables, running via [Sequelize v4](http://docs.sequelizejs.com/)\n* Server-side sessions. Deleting the DB entry remotely kills the session\n* Password hashing via [bcrypt](https://www.npmjs.com/package/bcrypt)\n* GraphQL types representing users, sessions, [JWT tokens](https://www.npmjs.com/package/jsonwebtoken), field errors\n* [Semantic UI React](https://react.semantic-ui.com) components and styling\n* 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\n* No modifications to the kit -- pure userland code\n\n## Video walk-through\n\nI've uploaded a 28 minute video on YouTube, which explains the concepts used in this project entitled *User authentication with GraphQL + DB + JWT*\n\nFind it here:\nhttps://youtu.be/s1p4R4rzWUs\n\n## Kit version\n\nBased on ReactQL kit [v2.8.5](https://github.com/reactql/kit/releases/tag/2.8.5)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactql%2Fexample-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freactql%2Fexample-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freactql%2Fexample-auth/lists"}