Drupal custom user profile - change auth0 password widget

I am integrating Auth0 into drupal 8.

I am creating a user dashboard where user can change his details and also Auth0 password.

I created a custom module for it and using change-password-1.5.min.js javascript and this class: Auth0ChangePassword.

I am able to display the form, however once the form is sent the password is not changed, there isn’t any error message.

I presume that it is because there is wrong csrf_token and ticket - the variables that are used to initialise Auth0ChangePassword class.

For user sign in we use drupal Auth0 module, I checked user data but there is no csrf_token/ticket.

Where I can get it please?

Thank you