Replies: 1 comment 2 replies
-
Maybe write your own Postgres function to get data from the auth table and the profile table. Using the user_id from auth.uid() would confirm the jwt if valid and a security definer function could fetch all the data you want. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table called profiles and there is a foreign key from the auth user id to that table.
When I call getUser() i'd like one of the columns to be added to the response to getUser(). Right now I'm having to do it in two separate queries which is inefficient. How can I join the columns I want and have it part of the getUser() response?
Beta Was this translation helpful? Give feedback.
All reactions