Device limits

You can configure how many devices can be associated with a single account via the dashboard and override these limits on a user-by-user base in code.

Default device limits

The easiest way to set a default device limit for all users is using the dashboard settings. You don't need to do anything else if you rely entirely on this option.

Adding a limit_config parameter in the client-side SDKs will override the dashboard configuration.

If you provide any limit config in the SDKs, they will override the default limit set on the dashboard. So, if you want all users to share the same device limit, don't add a limit_config parameter to the SDK.

Relying on the dashboard for default limits applies effects in real-time.

Dashboard settings

Individual device limits

You can also set the device limits via the SDKS. To do that, pass a limit config object in all the client-side SDKs. This could be useful if the number of devices a user can have depends on their plan. Here's a code snippet overriding the default limit config.

await Rupt.attach({
  client_id: "client_id",
  account: "user_id",
  limit_config: { overall_limit: 2 },
  redirect_urls: {
    logout_url: "",
    new_account_url: "",