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.
https://developer.okta.com/docs/reference/api/sessions/#get-current-session

1 Like

thank you! i will give it a try

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.