Skip to main content

Identity

Agent Runtimes


Agent Runtimes / identity/types / Identity

Interface: Identity

Defined in: identity/types.ts:50

Identity represents a connected OAuth or token-based provider

Properties

authType?

optional authType?: AuthType

Defined in: identity/types.ts:54

Authentication type


connectedAt?

optional connectedAt?: number

Defined in: identity/types.ts:64

Connection timestamp


displayName

displayName: string

Defined in: identity/types.ts:56

Display name for UI


iconUrl?

optional iconUrl?: string

Defined in: identity/types.ts:58

Icon URL for UI


isConnected

isConnected: boolean

Defined in: identity/types.ts:62

Whether this identity is currently connected


provider

provider: string

Defined in: identity/types.ts:52

Provider identifier


scopes

scopes: string[]

Defined in: identity/types.ts:60

Required OAuth scopes


token?

optional token?: OAuthToken

Defined in: identity/types.ts:68

Token (only available when connected)


userInfo?

optional userInfo?: ProviderUserInfo

Defined in: identity/types.ts:66

User info from provider (e.g., username, email)