Use current_user object in the resources

Hello Guys!

I would like to be able to use {{ current_user }} object inside a resources, in the authentication section. Ideally I want a user to call resources with his own account in the database.

So far I found out that the only way is to have enterprise and use Retool Environment variables combined with RetoolAPI to change variables to current user credentials but then I have a concern. What if we have >1 user currently logged in ?

Hi @RepcakeM! Welcome to the community. :wave:

It's not immediately obvious due to incorrect linting, but the current_user variable actually is accessible if you are using a custom authentication flow.

Is there a particular place where you're trying to reference current_user that doesn't seem to work? It's possible that it might just be a linting error, as it is here.