Changes Required in your Backend
These are the changes you must make to your backend in order to implement Simple Sign-in.
Change your Sign-in API
Set up a new API, or modify your existing sign-in API, to accept an SSI token as a new type of login credential. Your API must process sign-in requests by validating the SSI token and authenticate customers using the link token enclosed in the SSI token. See Customer authentication using a link token for detailed steps to authenticate your customers using a link token. The SSI token library provided with the Appstore SDK can be used to validate SSI tokens and link tokens. For more details, see SSI Token Library.
Generate a link token
To issue link tokens, implement a new API that your app will call during the account linking setup process. The SSI token library provided with the Appstore SDK can be used to generate link tokens. For more details, see SSI Token Library.
Fetch login names
This change is how you skip the login selection screen integration. Otherwise, to build a login selection screen, you'll need an API to fetch login names for linked user accounts. The linked accounts will be authenticated using SSI tokens.
Last updated: Mar 13, 2023