I’ve been trying to figure out the Auth0 integrati...
# prisma-whats-new
b
I’ve been trying to figure out the Auth0 integration. I’ve configured it as indicated in the docs. But when i sign up a new user in Auth0 the user doesn’t get created in the User table in GraphCool. Does the Mutation that creates the record happen behind the scenes or is that something i need to create?
👍 1
s
Hi @bookofdom 🙂 You need to call the createUser mutation as detailed in https://www.graph.cool/docs/reference/simple-api/user-authentication-eixu9osueb#auth0-social-logins Normally you would do this as part of the signup flow, but you can also have server code handle this. The createUser mutation will only ever create one Graphcool user for each Auth0 user.
b
Probably best to handle that in a Auth0 Rule as part of the authentication pipeline. I’ll write that code and post it if you want to add it to the docs. Thanks!
s
That would be awesome - thanks!