prisma-archive / graphcool-templates

📗 Collection of Graphcool Templates
MIT License
361 stars 100 forks source link

Question: Can this be used via an SPA and without Auth0 Lock? #139

Open michaelpumo opened 6 years ago

michaelpumo commented 6 years ago

I followed the steps in the README and I can get it working, but I'm just wondering if anyone has an example of this working via an SPA without Lock.

I am wanting to use auth0-js to roll my own custom login screen instead of requiring the use of Lock on the Auth0 website.

I'm referring to the example here: https://github.com/graphcool/templates/tree/master/auth/auth0/example

Sorry if this is the wrong place for this. Thanks.

maxdarque commented 6 years ago

Yes it's very easy to implement your own auth - see code here

Graphcool normally ask users to post questions to the forum

michaelpumo commented 6 years ago

@maxdarque Sorry, am I missing something? The link you provided appears to integrate to Graph Cool's own email auth and not the Auth0 service. Thanks.

maxdarque commented 6 years ago

oh my mistake. I see you want to build your own custom login screen. I've never done that before. I used to use Auth0 then switched to implement my own auth. I know you can customise the colors and logo on Lock that's all

michaelpumo commented 6 years ago

@maxdarque Yep. I got it all working, but not with resolvers. I had it going okay when I was using the Auth0 integration but it's now deprecated so I'm trying to move to the resolver solution.