Skip to main content

Auth0

An object representing all of the properties that are available within a Auth0 PKCE Flow

Properties

NameType
identityAuth0Identity
userAuth0User
metadataAuth0UserMetadata
domainstring
clientstring
audiencestring
redirectsAuth0Redirects
oAuthOAuthGroup
namespacestring

Example

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

// TODO: Update the object below with actual values
const example: Auth0 = {
"identity": null,
"user": null,
"metadata": null,
"domain": null,
"client": null,
"audience": null,
"redirects": null,
"oAuth": null,
"namespace": 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 Auth0
console.log(exampleParsed)