</body>
tag.
</body>
tag.
Here are links to instructions for a few popular hosting providers. See our
JavaScript SDK reference for more details.
At this point, if you load your site in a browser after saving or publishing,
you should see the Rownd Hub appear in the lower left-hand corner of the site.
If you’re building a single-page app in React, Vue, etc, then use our
framework-specific SDKs instead of these instructions.
If your single-page app is separate from your website, then you’ll want to use
the instructions on this page for the website and the framework SDK instructions
for the single-page app.
If you find any of this unclear, get in touch with us and we can help you figure
out which pieces you’ll need.
_rphConfig
object.
To set a config parameter, add an additional script block after the main Rownd snippet. The important thing to see here is the call to _rphConfig.push()
.
"put"
or "post"
method, the access token will be included in the request body as a field named access_token
. For an HTTP "get"
, it is included in the Authorization
header.
There are two properties that Rownd looks for in the response body that drive behavior when thhe API call completes.
rownd.signOut()
.
There are two properties that Rownd looks for in the response body that drive behavior when thhe API call completes.
rownd.signOut()
.
rownd.user.set()
, rownd.user.setValue()
, and sign-in completions where data is saved. The new user data will be included in the request body property named user_data
.
There are two properties that Rownd looks for in the response body that drive behavior when thhe API call completes.
rownd.io
and app.rownd.io
), set this to the "root" origin (e.g., https://rownd.io).
"error"
, "warn"
, "info"
, "debug"
, and "trace"
.
rownd
property on the global
Window
object. All JS APIs are available on this object. Check out the JavaScript API reference documentation for a comprehensive view of the API.
onLoaded
event, like this:You can interact with the Rownd JS Apisign_in_completed
"google"
, "apple"
, "phone"
, "email"
, "passkey"
, or "anonymous"
."new_user"
or "existing_user"
."new_user"
or "existing_user"
.
app_variant_user_type
will be released in early 2025Example
sign_in_failed
Example
auth
Example
sign_out
Example
user_data
rownd.user.set()
, rowns.user.setValue()
, changes to profile data in the Rownd Hub UI, or due to data changes when authenticating.
Example