Implementation
Get cross-domain authentication added to your product
Getting Started
-
Locate your subdomain from the Rownd dashboard’s settings
-
Create or use an existing app key
-
Form your root origin URL using the following template
-
Add the root origin URL to your implementation of the Rownd SDK (see examples below)
-
Test to ensure everything is working. You should be able to visit one of your domains, sign in successfully, and then visit another of your domains and remain signed in.
Implementation Examples
If you’re using our WordPress, Shopify, or similar integrations, look for a “Root Origin URL” setting the the plugin or app’s configuration page.
Below are some examples of how to enable cross-origin authentication across various Rownd SDKs.
Next.js / React / Remix
JavaScript
For websites using the standard snippet:
Best Practices
-
Maintain consistent configuration across all properties
-
Use trusted SSL certificates for all domains
-
Test authentication flow in development environment before implementing in production
-
Test user flows across different domains
Troubleshooting
If the authentication state isn’t syncing, make sure you:
-
Verify that the root origin configuration is the same across all web properties
-
Be sure SSL certificates are valid
-
Confirm the app key is correct
If you’re still facing difficulty, please reach out to Rownd support.