Skip to content

f-23/passkey-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fido Server Example

This is an example repo which can be used for testing react-native-passkey.

Installation

After cloning the repo run

$ yarn

in the repo root to install dependencies.

Running the server

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Setup

In order to get the server up and running you will need to either host it or (the easier way) use a tool like ngrok to create a tunnel to your local system.

Config

In src/routes/auth/auth.controller.ts replace the following values for your own.

const rpID = 'XYZ.ngrok-free.app'; // Replace with your domain (e.g. ngrok)

const androidOrigin = 'android:apk-key-hash:XYZ'; // Replace with your signing key hash as described in the docs

App Association

You will also need to replace the association values for Google and Apple in the corresponding json files.

src/static/apple/apple-app-site-association -> Set your own team and bundle ID (more info)

src/static/apple/assetlinks.json -> Set your SHA256 signing key fingerprint (more info)

Done

The server should now be ready. You can find an example on how to use it on the client side here.

About

An example passkey server for testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published