Insert rows with user id (uuid)

I have an events table which has the foreign key to uuid inside auth.users table. I am using the javascript client and can't figure out how to get the uuid for the logged in user and put that whenever I insert rows into the events table
Was this page helpful?