Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

@reactor/auth — orgsclient

@reactor/auth


@reactor/auth / OrgsClient

Defined in: orgs.ts:25

Organizations client for managing organizations, members, and invitations.

new OrgsClient(ctx): OrgsClient

Defined in: orgs.ts:26

RequestContext

OrgsClient

get invitations(): InvitationsClient

Defined in: orgs.ts:84

Get the invitations client.

InvitationsClient

create(params): Promise<Result<Organization>>

Defined in: orgs.ts:52

Create a new organization.

CreateOrgParams

Promise<Result<Organization>>


delete(idOrSlug): Promise<Result<void>>

Defined in: orgs.ts:70

Delete an organization.

string

Promise<Result<void>>


get(idOrSlug): Promise<Result<Organization>>

Defined in: orgs.ts:45

Get an organization by ID or slug.

string

Promise<Result<Organization>>


list(params?): Promise<Result<Organization[]>>

Defined in: orgs.ts:31

List organizations the current user belongs to.

any

Promise<Result<Organization[]>>


listRoles(): Promise<Result<Role[]>>

Defined in: orgs.ts:91

List available roles.

Promise<Result<Role[]>>


members(orgId): MembersClient

Defined in: orgs.ts:77

Get a members client scoped to an organization.

string

MembersClient


update(idOrSlug, params): Promise<Result<Organization>>

Defined in: orgs.ts:59

Update an organization.

string

UpdateOrgParams

Promise<Result<Organization>>