uug-ai / facial-access-control

A scalable web based application to provide and administer facial access to any device or service through facial biometric recognition.
https://uug.ai
3 stars 0 forks source link

Implement login page (JWT) #10

Open cedricve opened 2 weeks ago

cedricve commented 2 weeks ago

I've created a /login POST method to allow authentication for a user (https://redux.js.org/usage/nextjs). Currently it's just root, root, however will be replaced by mongodb database. https://github.com/uug-ai/facial-access-control/blob/main/api/routers/http/jwt_middleware.go#L41-L69

This issue will allow us to login a user to the application (through a JWT - JSON Web Token), and then leverage the session/token through future requests. This issue is linked to #9 as it requires state management.

cedricve commented 2 weeks ago

@KilianBoute / @LuisMaja will introduce you first to the API in our next standup.