Authorization flow for Embedded UIs
The authorization flow provides a secure way to ensure that only users verified by your app can join the network as provisioned users.
Enable secure mode
Reach out to Village support to activate secure mode and enforce a more robust authentication flow, ensuring only verified users can integrate with Village.
By enabling secure mode, identifying users without an authorization token will be immediately deprecated. Ensure your integration is updated to authenticate users exclusively via tokens to maintain compatibility.
Generate a token to authorize the user
In your server, send a request to the Village API to create a token to authorize the user. Check the API Reference for more details.
Generating an authorization token does not automatically provision a new user or impact billing. A user is only added as a provisioned user once they initiate their network sync.
Initialize the SDK
Copy the snippet below to add the Village SDK to your application. You should use the generate token from the previous step.
🎉 Go live!