adityanandanx / adityanandanx/Trybe
[FEAT]: JWT Authentication on backend
- 主要言語
- TypeScript
- スター
- 7
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## Requirements
Create a new django app (not project, [see this](https://stackoverflow.com/questions/19350785/what-s-the-difference-between-a-project-and-an-app-in-django-world)) called `auth` which has these endpoints -
- `/auth/register` - User can create an account
- method: POST
- body: `email, password, confirm_password, full_name`
- response: `status, message, access_token, refresh_token`
- `/auth/login` - User can login to their account
- method: POST
- body: `email, password`
- response: `status, message, access_token, refresh_token`
- `/auth/logout` - User can logout of their account
- method: POST
- body: `nothing`
- header: `Authorization: Bearer `
- response: `status, message`
- `/auth/refresh` - User can refresh their `access_token`
- method: POST
- body: `refresh_token`
- response: `status, message, access_token`
## Resources
- What is JWT - https://jwt.io/introduction
- SimpleJWT docs - https://django-rest-framework-simplejwt.readthedocs.io/en/latest/getting_started.html
- Random YT vid I found - https://youtu.be/5ws4RDEw91Q?t=260
- Learn to google stuff you dont understand. The whole of programming in general depends on how well you can google.
コントリビューションガイド
評価
この issue はまだ評価されていません。