Which is most used or followed approach while crea...
# random
e
Which is most used or followed approach while creating authentication for application? 1) JWT + localstorage 2) JWT + httpOnly cookie 3) httpOnly cookie + session
s
cant comment on which is mostly used but we use httpOnly cookie + sessionId
m
We use JWT + httpOnly cookie
e
@silly-sundown-88321 In nodejs or java what is tech stack?
s
java
e
@silly-sundown-88321 For microservices or multi tenant based architecture is session auth with httpOnly cookie suitable?
s
yeah we use it the same way, each and every api call authenticates the user. If there is a downstream api that needs to be called we pass the sessionId to the downstream microservice.
e
@silly-sundown-88321 From scalability & performance point of view is session based auth using httpOnly cookie good? As we are going to validate user on every request to check in DB if it is valid session or not
@silly-sundown-88321 One more question do you use single session storage for all microservices? Is it redis??