AIToolAuthorization
constructor(kind: AIToolAuthorization.Kind = Kind.OAuth, provider: String, providerName: String? = null, title: String, message: String? = null, url: String, handoffToken: String? = null, expiresAt: Date? = null, status: AIToolAuthorization.Status? = null)
Parameters
kind
How the person signs in. Defaults to Kind.OAuth when the agent sends none.
provider
The provider, such as linear.
providerName
What people call the provider, such as "Linear".
title
The question, such as "Connect Linear".
message
What signing in means for the person.
url
The sign-in page to open: an https URL, or an http one on this device itself (localhost or a loopback address), as a router run locally serves. Open launchUrl, which carries the handoffToken.
handoffToken
What binds the sign-in to the first browser that opens it. It goes in the page's fragment, which no server sees. Gone once the sign-in is over.
expiresAt
When the sign-in expires.
status
How it ended, once it did.