{"id":21353258,"url":"https://github.com/therealedsheenan/contempo-auth","last_synced_at":"2026-05-04T16:37:34.235Z","repository":{"id":19228771,"uuid":"86157351","full_name":"therealedsheenan/contempo-auth","owner":"therealedsheenan","description":"Authentication method for react","archived":false,"fork":false,"pushed_at":"2022-12-06T21:34:02.000Z","size":1743,"stargazers_count":0,"open_issues_count":27,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T17:27:19.620Z","etag":null,"topics":["jwt-authentication","jwt-token","react","react-auth","webpack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/therealedsheenan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-25T12:56:52.000Z","updated_at":"2017-03-29T07:01:25.000Z","dependencies_parsed_at":"2023-01-11T20:31:04.767Z","dependency_job_id":null,"html_url":"https://github.com/therealedsheenan/contempo-auth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealedsheenan%2Fcontempo-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealedsheenan%2Fcontempo-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealedsheenan%2Fcontempo-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/therealedsheenan%2Fcontempo-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/therealedsheenan","download_url":"https://codeload.github.com/therealedsheenan/contempo-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826798,"owners_count":20354221,"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","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":["jwt-authentication","jwt-token","react","react-auth","webpack"],"created_at":"2024-11-22T03:16:59.848Z","updated_at":"2026-05-04T16:37:29.184Z","avatar_url":"https://github.com/therealedsheenan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![logo contempo](https://github.com/therealedsheenan/contempo-auth/blob/master/repo-assets/contempo-auth.png)\n\n# contempo-auth [![License](http://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)\nThis repo is about how to create an authentication using JWT on\nSingle Page Applications specifically for React.\n\n## Requirements\nThe prerequisites are the following:\n\n1.) Mongo Database\n\n2.) [contempo-node-api](https://github.com/therealedsheenan/contempo-node-api)\n\nMake sure you have mongo database in your system.\nSetup the API by following the instruction from the link provided.\n\n### Under the hood\nWith the recent react-router v4, rendering of restricted routes are slightly changed.\n\nWrapping the router into an HOC and add the authentication function.\n\n![sampe code](https://github.com/therealedsheenan/contempo-auth/blob/master/repo-assets/samplecode.png)\n\nYou can checkout the [react-router v4](https://reacttraining.com/react-router/) documentation for more information.\n\n### Dependencies\n- Contempo repo\n- Server API\n\n### How To\n- run the development environment with `npm run dev`\n- run isomorphic app with `npm run server`\n- run tests with `npm run test` or `npm run test:update`\n- run eslints with `npm run eslint`\n\n### Additional info\nThis implements realtime data updates on component.\nCheckout the socket configuration files on the Server API and `HomeContainer.js`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealedsheenan%2Fcontempo-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftherealedsheenan%2Fcontempo-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftherealedsheenan%2Fcontempo-auth/lists"}