Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yangjonghun/graphql_auth_sample
https://github.com/yangjonghun/graphql_auth_sample
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yangjonghun/graphql_auth_sample
- Owner: YangJonghun
- Created: 2019-09-23T06:59:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T22:22:26.000Z (almost 2 years ago)
- Last Synced: 2024-10-14T20:47:05.999Z (about 1 month ago)
- Language: TypeScript
- Size: 2.6 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 40
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JWT Authentication
## Technologies
- Typescript
- GraphQL
- TypeGraphQL
- TypeORM
- PostgreSQL
- React
- Redux
- Apollo (with GraphQL Code Generator)## Backend
1. Setup a GraphQL Server using TypeGraphQL and TypeORM
2. Register a user
3. Login and create access / refresh tokens
4. Authenticated mutation/queries
5. Refresh the token
6. Revoke tokens for a user> defined your own `.env` before start server
## Frontend
1. Setup Apollo GraphQL Code Generator
2. React Router
3. Register/Login
4. Persisting session on refresh
5. Handling expired tokens
6. Fetching current user in header, etc...> execute `$ yarn gen` with started server