VoDinhNghia / blog-service

Service blog-service for student management project an university
1 stars 0 forks source link

[Auth Microservice] nodejs microservice architecture jwt authentication #3

Open VoDinhNghia opened 1 year ago

VoDinhNghia commented 1 year ago

Sync key and payload ({ email, userId (_id of mongo mgt-student), profileId, role }, in VerifyToken from userId => find user in blog-service to get id => add id to req.user) => possible using an token when login for both mgt-student and blog-service but issue is when loss of token => data both service will loss of... Do we have any solution other way?

VoDinhNghia commented 1 year ago

Discusion: https://github.com/VoDinhNghia/blog-service/discussions/2