1. Create a server key
In Settings → Community sign-in → Configure, select Website sign-in, then Generate server key. Copy it immediately; the full secret is shown only once. Key creation takes effect immediately, independently of saving the policy. Store it asFEEDBACKLOOP_SSO_KEY on your website’s server. Generate a separate random bridge secret, for example:
FEEDBACKLOOP_BRIDGE_SECRET. Keep both values out of browser bundles, client environment variables, repositories and logs.
2. Install the helper and connect your authentication
Download website-sign-in.mjs into your server application. It uses Node’s built-in crypto and fetch APIs. Theauth methods below are illustrative adapters to your own provider. Replace them with your existing server-side session verification, sign-in response and logout operations.
getSession must verify the current session on the server. Use a stable user ID and a distinct session ID for each login, with expiry in Unix milliseconds. Profiles are display information, not proof of identity. If your provider has no session ID or usable expiry, see the helper reference.
3. Connect logout, account switching and deletion
For logout or account switching outside the community, revoke the browser session before ending the current website session. Append the returned cookie header to your normal response:await community.revokeSession(sessionId). After a website account is deleted, call await community.deleteUser(userId). The latter revokes participation and starts removal of that user’s contributions within this project.
4. Save the policy
Deploy the endpoint. Enter the exact same HTTPS integration URL in the sign-in dialog and choose Save sign-in settings. A saved configuration is not an end-to-end connection test.5. Verify the visitor journey
- Sign in to your website, then open the public community. Confirm the expected profile is used.
- Submit a disposable request or vote, reload, and confirm access still works.
- Sign out through the community and confirm the website session ends.
- Sign in again, then log out or switch accounts from your website. Confirm the previous identity can no longer participate.
- Verify your account-deletion hook in your own test environment.