https://github.com/blinks32/nexmo-phone-authentication-api-for-node-js-ionic5
This is a simple api i built that is hosted on firebase cloud functions, that sends an otp via sms and automatically authenticates the user.
https://github.com/blinks32/nexmo-phone-authentication-api-for-node-js-ionic5
Last synced: 4 months ago
JSON representation
This is a simple api i built that is hosted on firebase cloud functions, that sends an otp via sms and automatically authenticates the user.
- Host: GitHub
- URL: https://github.com/blinks32/nexmo-phone-authentication-api-for-node-js-ionic5
- Owner: blinks32
- Created: 2020-07-12T12:51:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T07:03:13.000Z (over 2 years ago)
- Last Synced: 2025-01-07T22:43:59.525Z (6 months ago)
- Language: HTML
- Size: 703 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Implementing Passwordless Login Using the Nexmo Verify API
This repo contains the example code for our [tutorial](https://developer.nexmo.com/tutorials/passwordless-authentication) on using the Nexmo Verify API to authenticate a user by their mobile phone number. It is written in Node.js using the Express framework.
## Installing your own version
Follow these steps to get your own version of this up and running:```bash
git clone https://github.com/nexmo-community/node-passwordless-login.git
cd node-passwordless-login && npm install
```## Configuring the application
Once installed, copy the `.env-example` file to `.env` in the application's root directory. Enter your API key and secret from the [Nexmo Developer Dashboard](https://dashboard.nexmo.com) and also a name for your application which will appear on the home page and also in the `from` field of any SMS sent via the Verify API.```
NEXMO_API_KEY=YOUR NEXMO API KEY
NEXMO_API_SECRET=YOUR NEXMO API SECRET
NEXMO_BRAND_NAME=UP TO 11 ALPHANUMERIC CHARACTERS
```
## Running the application
You should then be able to run the app with `npm start`.