FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. john.bantoto
    3. Best
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by john.bantoto

    • changePassword returns 401

      I am using "@fusionauth/typescript-client": "^1.42.0" and tried to use the changePassword method.

      const fa = new FusionAuthClient(
        API_KEY,
        HOST,
        TENANT_ID
      );
      
      await fa.changePassword(undefined, {
        loginId: userEmail,
        password: "newPassword",
      });
      
      

      I always get a 401 response.

      I tried with a normal http request using axios and it's working so I think there is an issue with the changePassword method.

       await axiosInstance.post("/api/user/change-password", {
        loginId: user.email,
        password: newPassword,
      });
      

      I double checked the keys and even tried using the retrieveUser method which successfully returns the the user.

      The error response doesn't give much info. Does anyone have an idea on how to resolve?

      posted in General Discussion
      J
      john.bantoto
    • RE: changePassword returns 401

      @vinicius-campitelli thank you!

      posted in General Discussion
      J
      john.bantoto