Skip to content

Team & organization

These work on the organization your token belongs to.

Invites and members need a team organization on a paid plan. The free plan doesn’t allow them.

yield* Turso.OrganizationInvite("Alice", {
email: "alice@example.com",
role: "admin",
});

role is admin, member, or viewer. The default is member. Changing it sends the invite again. Destroying it cancels the invite.

yield* Turso.OrganizationMember("Bob", {
username: "bob",
role: "viewer",
});

Use this when the person already has a Turso account. You can change role later. Destroying it removes them.

yield* Turso.OrganizationSettings("Org", {
requireMfa: true,
restoreEnabled: true,
});

Alchemy only touches the settings you list. Destroying it puts them back the way they were.

overages lets Turso bill you for usage past your plan’s limits. Only turn it on if you mean to.