Skip to main content

ExternalProvider

I know that profileData and user_id have differeing casing but they are done because they map to Auth0's projeecties.

Properties

NameType
schemaEmbeddedModelSchema
typeExternalProviderTypeEnum
userIdstring
accessTokenstring
expiresInnumber
createdGroupedTimestamp
updatedGroupedTimestamp
profileDataExternalProviderProfileData
connectionstring
isSocialboolean

Example

import { ExternalProvider } from '@pieces.app/pieces-os-client'

// TODO: Update the object below with actual values
const example: ExternalProvider = {
"schema": null,
"type": null,
"userId": null,
"accessToken": null,
"expiresIn": null,
"created": null,
"updated": null,
"profileData": null,
"connection": null,
"isSocial": null,
}

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as ExternalProvider
console.log(exampleParsed)