Skip to main content

Auth0User

Properties

NameType
namestring
picturestring
emailstring
createdAtDate
emailVerifiedboolean
familyNamestring
givenNamestring
identitiesArray<Auth0Identity>
nicknamestring
updatedAtDate
usernamestring
userMetadataAuth0UserMetadata
localestring
userIdstring
lastIpstring
lastLoginDate
loginsCountnumber
blockedForArray<string>
guardianAuthenticatorsArray<string>

Example

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

// TODO: Update the object below with actual values
const example: Auth0User = {
"name": Tsavo Knott,
"picture": https://picsum.photos/200,
"email": user@pieces.app,
"createdAt": null,
"emailVerified": null,
"familyName": null,
"givenName": null,
"identities": null,
"nickname": null,
"updatedAt": null,
"username": null,
"userMetadata": null,
"locale": null,
"userId": null,
"lastIp": null,
"lastLogin": null,
"loginsCount": null,
"blockedFor": null,
"guardianAuthenticators": 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 Auth0User
console.log(exampleParsed)