Wednesday, 20 May 2020

I'm building simple authentication as practice in express but how I can add user object to all routes and update it

HII talk a look in passport but I did'n't understand how it's actually work so I decided to do authentication by myselfI made the register and login logic but how I can add user object to my entire app so for example I can decide in template to give access for authorized users onlyI can't describe exactly what I mean but if anyone deals with Django before I mean the current_user objectand what I should put in my consideration when I do authentication by my self

Submitted May 21, 2020 at 02:38AM by mohammedatef555

No comments:

Post a Comment