Skip to content

zimmermanw84/phone-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phone Auth

Build Status
Build an Authentication service using twilio api.

Purpose

  • Explore phone auth login flow
  • Experiment using non email/password flow

Tech

  • Node.js
  • DynamoDB
  • Twilio API

Api (no host on purpose: email me or clone)

POST /users
Body: { phone_number: <Valid_10_Digit_Phone_Number> }

Returns a JSON object with you phone number. You will receive a text message with a verification code.

POST /users/:phone_number/verify
Body: { verification_code: <Code_That_Was_Returned_From_^^> }

Returns an authorization token.

GET /users/:phone_number
Headers: { authorization: <Auth_Token> }

Returns User Object.

PUT /users/:phone_number
Headers: { authorization: <Auth_Token> }
Body: { first_name: <String>,last_name: <String>, username: <String> phone_number: <Valid_10_Digit_Phone_Number> } // Any Updatable User Properties

Warning: Changing your phone_number will change your route (obviously)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published