FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Shares 0
    • Posts 14
    • Groups 0
    A Offline
    1. Home
    2. altear147
    3. Topics

    Topics

    • A

      How to setup OAuth properly

      Watching Ignoring Scheduled Pinned Locked Moved Solved Q&A
      24
      0 Votes
      24 Posts
      66k Views
      S
      It's so easy to mix up those IDs when you're moving between FusionAuth and the Google console! It’s definitely one of those things that’s right under your nose but impossible to see until someone points it out. Glad to hear you got the callback working - that 'invalid_client' error can be a real headache when everything else looks correct.
    • A

      Update user using ts SDK but the username is removed

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Q&A
      2
      0 Votes
      2 Posts
      2k Views
      A
      @altear147 I encountered this behavior today when I tried to update the username for a user: await getFusionAuthClient(tenantId).updateUser(userId, { user: { username, }, }); To my surprise (but probably only the lack of knowledge), this set theusername of the user as specified but also deleted the email just as you described. I was thinking, okay, let's move on and don't touch username and specify firstName as the only key for the update: await getFusionAuthClient(tenantId).updateUser(userId, { user: { firstName, }, }); but then I received this error: [image: 16e0e85b-affe-4d49-be46-bf5a05f5d811-image.png] Which I also didn't expect, since I assumed the userId uniquely identifies a user and I don't have to supply more fields to help FusionAuth identify it. After supplying the exact same things as you did: await getFusionAuthClient(tenantId).updateUser(userId, { user: { email: email as string, firstName: firstName as string, lastName: lastName as string, mobilePhone: mobilePhone as string, }, }); my user object is getting updated. To clarify, the email input is disabled on my form, and users can only enter first name, last name, and mobile phone. You can find the complete code here: https://github.com/akoskm/saas/blob/main/app/routes/team_.%24userId.edit.tsx Hope this helps.