Assuming you mean auth.users.last... you would put...
# sql
g
Assuming you mean auth.users.last... you would put a trigger on update to auth.users table and check if new.last_sign_in_at is different than old.last_sign_in_at and update your public.user_details if it is.