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 .
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
Distributed under the MIT License. See LICENSE