Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to let users update thier own user profiles with token? #158

Open
timytomy opened this issue May 30, 2022 · 0 comments
Open

How to let users update thier own user profiles with token? #158

timytomy opened this issue May 30, 2022 · 0 comments

Comments

@timytomy
Copy link

timytomy commented May 30, 2022

I want users to update thier own user profiles so I used "updateAccount" as shown below but, the error "Unauthenticated" occurred even though the account is verified and logged in.
:

mutation {
  updateAccount(
    firstName: "John"
  ) {
    success,
    errors
  }
}

So, I added "token" as shown below but the error "Unknown argument "token" on field "updateAccount" of type "Mutation"." occurred:

mutation {
  updateAccount(
    token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImthenlhLml0by5kcmVhbUBnbWFpbC5jb20iLCJleHAiOjE2NTM4NzY0NDgsIm9yaWdJYXQiOjE2NTM4NzYxNDh9.2yyp9k86V_0AoiPJFmxTE6__-q1n4cWNysOw8bNIDqA"
    firstName: "John"
  ) {
    success,
    errors
  }
}

Are there any ways to let users to update thier own user profiles?

@timytomy timytomy changed the title How to let users update thier user profiles with token? How to let users update thier own user profiles with token? May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant