How to get the user id after authentication?

Thanks for your help, now it works me.