Change password after log in successfully by password flow

Hi there,

I have successfully log in the user by using custom login widget. And I also provide them ability to change password. After research, I found out that using this api could help Users | Okta Developer. However, I can’t find the way to get the user id. Could you please help?

If user was able to login and have an active session, you can use the /sessions/me endpoint to get the userId via javascript. However, this requires enabling third-party cookies.

1 Like

thank you! i will give it a try