This is an example repo which can be used for testing react-native-passkey.
After cloning the repo run
$ yarnin the repo root to install dependencies.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodIn 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.
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 docsYou 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)
The server should now be ready. You can find an example on how to use it on the client side here.