{ user }
returned from getEntity
breaks when implementing anonymous auth
#3337
-
I've implemented anonymous auth so that I can have tiered data availability in different sections of my api. Some data is visible to logged out users, and logged in users will be subject to RBAC. I have a hook that restricts properties if either the user object is:
The problem, I think...I believe that when I call reAuthenticate in my client that calls the jwt strategy and Solutions?feathers/packages/authentication/src/jwt.ts Lines 107 to 126 in 82d30fd Do we need the check for Does my logic track here? Any other known workarounds @daffl ? Another thought... Maybe auth strategies should have their own unique provider? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Confirming this custom jwt strategy addresses the issue:
@daffl do you think this should be the default logic? Is there any reason why it shouldn't work this way? |
Beta Was this translation helpful? Give feedback.
Confirming this custom jwt strategy addresses the issue:
@daffl do you think this should be the default logic? Is there any reason why it shouldn't work this way?