Skip to content

Register User #6

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

Open
tabaktoni opened this issue Oct 30, 2017 · 7 comments
Open

Register User #6

tabaktoni opened this issue Oct 30, 2017 · 7 comments

Comments

@tabaktoni
Copy link

I have this error when i try to test register user from app:
GraphQL error: User is not permitted to access mutation: createUser

@MacKentoch
Copy link
Owner

Hi,

Did you set configuration after creating an account?

@tabaktoni
Copy link
Author

Yes, i also tested directly on scaphold graphiQl and it worker and login worked. But when i try from test app i get that error.

This is what i did:

  1. npm install
  2. Setup app on scaphold "as is"
  3. change config/index.js with API endpoint
export const appConfig = {
  // apollo client:
  apollo: {
    networkInterface: 'https://us-west-2.api.scaphold.io/graphql/my-booker'
  }
};
  1. npm run start

@MacKentoch
Copy link
Owner

Does it work with the preview?

I don't see any particular reason why it would not work.

@abh4chat
Copy link

i bypassed this issue by toggling permissions

@MacKentoch
Copy link
Owner

Which permissions are you referring to?

@abh4chat
Copy link

Permission scope on type in scaphold.

@MacKentoch
Copy link
Owner

That makes sense.

Thank you @abh4chat for sharing your feedback.

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

3 participants