encodeConsentRequest()
function encodeConsentRequest(fields): object;The consent page’s query for a request. Throws a ZodError for an invalid list.
Parameters
fields
Returns
client_id
client_id: "modem-cli" = AdminApiKey.ClientIdSchema;code_challenge
code_challenge: string;code_challenge_method
code_challenge_method: "S256";device?
device?: string;expires_in?
expires_in?: "never" | "7d" | "30d" | "90d" | "1y";intent?
intent?: "login" | "create";modes?
modes?: string;name?
name?: string;permissions?
permissions?: string;projects?
projects?: string;redirect_uri
redirect_uri: string = LoopbackRedirectUriSchema;replaces?
replaces?: string;The client’s previous key, revoked when the client exchanges the code. Login only.
state
state: string;Last updated on