Comments (7)
and replace it with your own implementation
sorry, I didn't understand that you are talking about replacing email-auth with own implementation. I thought you meant extending it.
now everything is clear.
from graphcool-templates.
That's correct - all custom authentication examples in this repository assume that no authentication provider is enabled in your project. You should be able to migrate the current email-password auth to something similar to this example.
from graphcool-templates.
consider next scenario:
- the email-pass auth provide is enabled
- accoukKit phone auth is set up
- user don't have an account (neight email-pass, nor accountKit using phone)
- user trying to login using accountKit phone auth
but we can't sign him up since using only his phone since his email is required!
from graphcool-templates.
the email-pass auth provide is enabled
you can replace and even cover more advanced scenarios with something similar to this using Schema Extensions. Then you can include the logic that handles the sync between account kit and email sign ups in your functions, too. 🙂
from graphcool-templates.
If user NEVER signed to my app before and is trying to sign using his phone number only -> I can't sign him in since EMAIL is REQUIRED by backend.
please, try to understand the situation. It's a problem.
from graphcool-templates.
Hey @mkozhukharenko I understand the situation, and it's caused by the limited possibilities of the email-pass provider. The reason the email
field is required, is because the email-pass provider is enabled. That's why I wrote
all custom authentication examples in this repository assume that no authentication provider is enabled in your project.
Now, if you disable the email-pass provider, and replace it with your own implementation, the email
field doesn't have to be required anymore, because that's all in your control now.
Of course, if you actually WANT the email field to be required, you'd need to adjust the sign up flow using account kit to also include an email address.
I agree that this is a problem, and I am trying to show you potential approaches to tackle it 🙂 Do you understand my suggestion now? I wasn't as clear before, sorry!
from graphcool-templates.
Great, thanks again for bringing up this confusion! I'll close this issue 🙂
from graphcool-templates.
Related Issues (20)
- Facebook Delegated Account Recovery
- Google auth mutation is not working HOT 3
- Auth-templates for Linkedin and Twitter HOT 2
- Templates should be written in TypeScript HOT 4
- Create language branches so people can easily contribute in their own programming language
- Email-password authentication returning an unhandled error HOT 2
- Auth0 authentication broken on React Native HOT 2
- Email / Password template : Passwords revealed in function error logs HOT 2
- Utility functions in a template - Please vote HOT 3
- jwt.decode fails on new id_tokens
- Question: Can this be used via an SPA and without Auth0 Lock? HOT 4
- Authentication template for Gitlab users
- Slack Bot command handling support
- Auth template for Twitch
- Should I PR an updated SMS authentication with Twilio? HOT 1
- Can't distinguish expired tokens from empty responses
- Add template and GraphCool.yml no longer working
- Token produced no longer works with GraphCool
- Passwords are stored in clear locally (no hash) HOT 2
- OAuth 2.0 support for linkedin auth-template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphcool-templates.