Skip to content

Passwordless Authentication with the tru.ID PhoneCheck API & Web SDK

License

Notifications You must be signed in to change notification settings

tru-ID/passwordless-auth-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passwordless Authentication on the web.

Requirements

  • A mobile phone with a SIM card and mobile data connection
  • Node.js
  • ngrok

Getting Started

Clone the starter-files branch via:

git clone -b starter-files --single-branch https://github.com/tru-ID/passwordless-auth-web

If you're only interested in the finished code in main then run:

git clone -b main https://github.com/tru-ID/passwordless-auth-web.git

Create a tru.ID Account

Install the tru.ID CLI via:

npm i -g @tru_id/cli

Input your tru.ID credentials which can be found within the tru.ID console

Create a new project via:

tru projects:create passwordless-auth-web --project-dir .

Starting Project

To start the project first install dependencies via:

npm install

then run

npm start

This will run the project on PORT 4000.

Then run ngrok. In the terminal where ngrok is running, run the following:

ngrok http 4000

this will give you a https website e.g.

https://0d834043fe8d.ngrok.io -> http://localhost:4000

S Open the ngrok URL on your mobile device

References

Meta

Distributed under the MIT License. See LICENSE

tru.ID

About

Passwordless Authentication with the tru.ID PhoneCheck API & Web SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published