where can be stored user info in .net core API project with angular

前端 未结 2 1858
春和景丽
春和景丽 2021-01-26 18:03

I have an angular project and i am using .net core 2.o Web API. I stored my user info in Jwt and i want log every database operation. I can access user info by sending jwt and t

2条回答
  •  清歌不尽
    2021-01-26 19:02

    you don't store it, Angular has to send the JWT in every request and Asp.Net Core webapi has to open it, validate it, and then read the user that made the request from it.

提交回复
热议问题