Skip to main content

SeededPKCE

A model that initialized a PKCE Authentication Flow.

Properties

NameType
schemaEmbeddedModelSchema
responseTypestring
statestring
noncestring
redirectUristring
codeChallengestring
codeChallengeMethodstring
domainstring
audiencestring
screenHintstring
promptstring
organizationstring
invitationstring
scopeArray<string>
clientIdstring
aDDITIONALPARAMETERSSeededPKCEADDITIONALPARAMETERS
responseModestring

Example

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

// TODO: Update the object below with actual values
const example: SeededPKCE = {
"schema": null,
"responseType": code,
"state": null,
"nonce": null,
"redirectUri": null,
"codeChallenge": null,
"codeChallengeMethod": null,
"domain": null,
"audience": null,
"screenHint": null,
"prompt": null,
"organization": null,
"invitation": null,
"scope": null,
"clientId": 9sW4Pa1LEjX67l6VO14u0207NLYeXnu1,
"aDDITIONALPARAMETERS": null,
"responseMode": 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 SeededPKCE
console.log(exampleParsed)