cancel
Showing results for 
Search instead for 
Did you mean: 

How to watch the value in the $user variable for debug

NanWang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi team,

According to the document, we can use some variable for authentication. like: link

{grant:'READ',where:'buyer=$user'}

My question is: could I watch the value in the variable when debug? or any other method could print the value in the $user.

Thanks.

View Entire Topic
pfefferf
Active Contributor
0 Kudos

You can check the user information in the "user" object added to the request object (e.g. req.user.id provides the user id). For details please check the documentation here.