Is there a way to setup Graphcool to handle two di...
# prisma-whats-new
s
Is there a way to setup Graphcool to handle two different Auth0 clients? I have two separate Auth0 clients: server and react app.
a
The recommended approach, also followed by the most recent Auth0 template, is to define Graphcool as an API in Auth0.
That way, it is not linked to any Auth0 client
And you can use it from both
That is, using the custom Auth0 authentication template
s
Ahhh, I built all this out prior to the auth0 template. Looks like I have to refactor. 😞
Ty sir
a
The changes are minimal if you have built your own
Normally, the audience in the token is that of your client
The new templates uses the audience from the API defined in Auth0
So not much needs to be changed
s
Oooh
Let’s see
s
Yeah, I’m using the old integration connection rather than the template. So have to move over to that.
This is going to be messy
a
Ouch, the built-in one you mean? Or the old custom one?
s
The built-in one
This was a while back
Worked great . . . until I added clients
a
Then you're in for a ride 😄
s
Ugh
a
Although, it's actually better than using the old custom integration
From a migration perspective I mean
s
Yeah
So I’ve been told
lol
FML
And I haven’t migrated to the new framework
WHY!?!?!?!
a
Well, now as good a time as any 😄
s
2 months before launch
lol