[discuss] code authentication service#776
Conversation
Codecov Report
@@ Coverage Diff @@
## master #776 +/- ##
========================================
Coverage ? 95.2%
========================================
Files ? 85
Lines ? 1835
Branches ? 356
========================================
Hits ? 1747
Misses ? 80
Partials ? 8
Continue to review full report at Codecov.
|
| @@ -0,0 +1,50 @@ | |||
| import { Twilio } from 'twilio'; | |||
There was a problem hiding this comment.
Although it's safe to say that twilio pretty much dominates this field, I wonder if we should allow the user to supply some SMSService rather then depending on twilio.
Another option is to just call this package code-provider-twilio so that it will serve as an example for others that need different SMS providers. Once we get another feature request about some other provider we could refactor for generic SMS providers.
@pradel thoughts?
There was a problem hiding this comment.
renaming it to twilio will prevent another layer of abstraction that we might not need.. so i'm +1 for doing it.
There was a problem hiding this comment.
notifme is a pretty good abstraction, and their notification catcher is really cool.
There was a problem hiding this comment.
Wow didn't know about notifme.. it looks great! What do you think @ozsay?
There was a problem hiding this comment.
it may be useful, though I can't see all the features that twilio provides (like messagingServiceSid)
|
@ozsay From my understanding of the pr, this service can't be used alone since it does not take care of the user account creation right? |
|
@pradel true. we use it with another service. |
|
I guess this should be clarified somewhere in the documentation as we want the service to be able to register a user I think. |
bdf442b to
3e57ec8
Compare
Hi,
I implemented a new authentication service which validates a previously sent code to the client.
Common use-cases:
The service both sends the code ("prepare authentication") using a code-provider and validates it after the client logs-in.
TODO:
@davidyaha Thoughts?