I'm able to get it up and running and authenticati...
# prisma-whats-new
g
I'm able to get it up and running and authenticating with Auth0. A user is created in Auth0 but a user is never created in graphcool.
t
@gollyjer What do your permissions look like on Graphcool?
g
Everyone --> Create Node Everyone --> View Data
👍🏼 1
t
That tripped me up earlier, worth a shot, ha
g
I don't need Edit Data as a permission?
Do you have it working with Exponent?
Thanks for replying by the way!
😛
n
Just making sure you thought of everything, did you change the project endpoint to yours? and also the Auth0 settings in the app itself?
you also have to add your exponent url thingy as an allowed callback url in the auth0 settings
and yea, there will be a proper example in the coming days 🙂
g
Just checked everything again to be sure. - Auth0 settings in graphcool Auth Providers section match those provided in the Auth0 Settings page. - Added exp:// url to the "allow redirects" section of Auth0. - Updated the 4 variables in main.js to match my settings.
I'm able to create an account that shows up in Auth0, but when redirected back to the app it just shows the login button screen. It basically redirects, checks for user in graphcool and never finds one.
n
can you please sprinkle console log statements to debug the issue?
hmm so you say the user is not created in the project?
you can start by console logging the constants set to the result of the three different queries/mutations
g
Adding some now
n
what I missed to do is select "apply to whole model" for the createUser mutation
g
are you saying you already know the problem?
n
no
can you make a Screenshot of the createUser permission?
g
looks like screenshots only go to the main thread.
n
could you try to select "apply to whole model" for those permissions? oh and we'll also need edit permissions because we run updateUser as well
g
it's not getting past
Copy code
const userResult = await client.query({
      query: gql`{
        user {
          id
          counter
        }
      }`
    })
Also, updated Create, View, and Edit to allow "in all Fields"
ok, I think this is boiling down to missing fields in my User model
just added 'counter' and got to the create user mutation then stalled.
n
ohhhh right. you also need the name field