Skip to main content

IdentityButtonProps

Agent Runtimes


Agent Runtimes / identity/IdentityConnect / IdentityButtonProps

Interface: IdentityButtonProps

Defined in: identity/IdentityConnect.tsx:110

Props for IdentityButton component

Properties

clientId?

optional clientId?: string

Defined in: identity/IdentityConnect.tsx:114

OAuth client ID (required for connecting)


disabled?

optional disabled?: boolean

Defined in: identity/IdentityConnect.tsx:120

Whether the button is disabled


onConnect?

optional onConnect?: (identity) => void

Defined in: identity/IdentityConnect.tsx:126

Callback when connection completes

Parameters

identity

Identity

Returns

void


onDisconnect?

optional onDisconnect?: (provider) => void

Defined in: identity/IdentityConnect.tsx:128

Callback when disconnection completes

Parameters

provider

OAuthProvider

Returns

void


onError?

optional onError?: (error) => void

Defined in: identity/IdentityConnect.tsx:130

Callback when error occurs

Parameters

error

Error

Returns

void


provider

provider: OAuthProvider

Defined in: identity/IdentityConnect.tsx:112

Provider type


providerConfig?

optional providerConfig?: Partial<OAuthProviderConfig>

Defined in: identity/IdentityConnect.tsx:116

Custom provider configuration (for custom providers)


scopes?

optional scopes?: string[]

Defined in: identity/IdentityConnect.tsx:118

Scopes to request (defaults to provider defaults)


size?

optional size?: "small" | "medium" | "large"

Defined in: identity/IdentityConnect.tsx:122

Size variant


variant?

optional variant?: "icon" | "compact" | "full"

Defined in: identity/IdentityConnect.tsx:124

Show full provider info or just icon