DfnsDemo
A demo application using the SDK can be found on GitHub. This demo application is to be used in conjunction with the Typescript server in delegated registration and login tutorial. It is a replacement for theAndroid section over there, you should read and execute all instruction written above this section to get this demo running.
Configuration
In the./app/src/main/java/co/dfns/sdk/tutorial/mobile/Constants.kt set the following values,
SERVER_BASE_URL: base url of the server you launched (eghttp://localhost:8000, or if using ngrok, the public ngrok url)PASSKEY_RELYING_PARTY_ID: the passkey relying party id, aka, the domain on which the above server is served (Read more here). If serving the server onhttp://localhost:8000, then set it tolocalhost. If serving the server through ngrok (eghttps://d0d7-31-217-63-194.ngrok-free.app), then set it tongrok-free.app. In general, we advise you use the root domain (eg.acme.com, notapp.acme.com) for more passkey flexibility (so that passkey is re-usable on subdomains).PASSKEY_RELYING_PARTY_NAME: A string representing the name of the relying party, aka, your company name (e.g. “Acme”). The user will be presented with that name when creating or using a passkey.