Vulos Documentation
  • Identity
    • Welcome to the Vulos Identity Documentation!
    • Quick Start
    • Organizations
    • Scopes and Claims
  • Reference
    • Identity JavaScript SDK
      • The Base Package
        • KYC
          • KycStatus
          • KycInstance
          • KycDetails
          • KycApi
        • Profile
          • UserReference
          • ProfileApi
        • Cache
        • Authentication
          • Application
          • BaseAuth
          • User
          • UserInfo
          • BaseApi
        • Organizations
          • Organization
          • OrganizationMembership
            • OrganizationMembershipWithMetadata
          • OrganizationRole
          • OrganizationApi
      • The Backend Auth Package
        • CodeVerifier
        • BackendAuth
      • The Frontend Auth Package
        • IFrameRefresh
        • StateVerifier
        • FrontendAuth
    • Organization API
      • Organizations
      • Memberships
        • Roles
    • Profile API
    • KYC API
Powered by GitBook
On this page
  • Members
  • roles : OrganizationRole[]
  • firstName : string
  • lastName : string
  • email : string
  • Methods
  • constructor(api, membership)
  • static async fromMembership(membership)
  • override async getRoles()
  1. Reference
  2. Identity JavaScript SDK
  3. The Base Package
  4. Organizations
  5. OrganizationMembership

OrganizationMembershipWithMetadata

PreviousOrganizationMembershipNextOrganizationRole

Last updated 3 years ago

This class implements .

Members

roles :

The roles associated with this membership.

firstName : string

The first name of the user associated with this membership.

lastName : string

The last name of the user associated with this membership.

email : string

The email of the user associated with this membership.

Methods

constructor(api, membership)

const info = await organizationApi.memberInfo(organizationId, membershipId)
const membership = new OrganizationMembershipWithMetadata(organizationApi, info)

static async fromMembership(membership)

Create a membership with metadata object from a normal membership.

const membership = await OrganizationMembershipWithMetadata.fromMembership(normalMembershipObject)

override async getRoles()

const roles = await membership.getRoles()

Create a new Membership object using the .

api must be an instance of ;

membership must implement the interface;

An override of that doesn't send a request to get the roles.

OrganizationMembership
OrganizationRole[]
Organization API
OrganizationApi
OrganizationMembership.getRoles()
MembershipInfo