Apperators / chat_app

4 stars 2 forks source link

(Feature) Auth Mechanism #2

Open TristanHoladay opened 2 years ago

TristanHoladay commented 2 years ago

Description

We need a simple way to register and authenticate users.

Apperators commented 2 years ago

https://nextjs.org/docs/authentication

register username --> backend makes JWT --> frontend stores JWT in local storage --> every request JWT gets sent so backend can tell who made what channel / message.