Access backend query in action

I have added a backend query on "On page Load" and I want to use this in an action "On page load" but I don't have access to it.
Context:
I want to check if the uid of authenticated user is already in users table I want to navigate to home page, otherwise navigate to profile settings page. I am using phone authentication.

4
5 replies