SkygearIO / features

Feature Tracking Repo for Skygear
Apache License 2.0
3 stars 12 forks source link

Login by SMS #19

Open chpapa opened 7 years ago

chpapa commented 7 years ago

Description

Login by SMS, kind of like Telegram / Village. Where users have no username / email (both are optional), users can sign up or login simply by a verification on SMS.

Design/Specification

WIP

Portal Features

API Design

skygear.auth.passwordlessSend({
  connection: 'email', // or 'sms'
  send: 'code', // or link
  email: 'rick.mak@gmail.com'  // phoneNumber
})

skygear.getLoginRedirectResult().then(function(skygearUser) {

  }).catch(function(error) {

  });

Related Issues

Progress Tracker

Advice

tensiuyan commented 7 years ago

@chpapa is this like one time login?

chpapa commented 7 years ago

@tensiuyan what do you meant by one time login?

seventhmoon commented 7 years ago

I think @tensiuyan means,

  1. is the SMS going to send a one time password for log-in (like https://1cm.hk.chinamobile.com/site/login.html?lang=en), or
  2. is the SMS is to verify the user owns the number for registration use (and have to provide a password for registration).
chpapa commented 7 years ago

Oh it is like one time login. For SMS verification there is another issue #20

rickmak commented 6 years ago

@limouren and @josephchow102 are working on an implementation.

rickmak commented 6 years ago

I updated a bit on the API design and found it will more appropriate to design the feature to be passwordless. We may take reference to Auth0: https://auth0.com/docs/connections/passwordless