adityanandanx / adityanandanx/Trybe

[FEAT]: JWT Authentication on backend

Aperta
#9 5 commenti 0 reazioni 1 assegnatario Rivendicata da @SharonIV0x86 Vedi su GitHub
backend enhancement
Lingua principale
TypeScript
Stelle
7
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.