Skip to main content

SignInSimpleProps

Datalayer Core


Datalayer Core / SignInSimpleProps

Interface: SignInSimpleProps

Defined in: src/views/iam/SignInSimple.tsx:37

Properties

description?

optional description?: string

Defined in: src/views/iam/SignInSimple.tsx:61

Optional subtitle / description.


leadingIcon?

optional leadingIcon?: ReactNode

Defined in: src/views/iam/SignInSimple.tsx:66

Leading icon element rendered next to the title. Defaults to <TelescopeIcon size={24} />.


loginUrl?

optional loginUrl?: string

Defined in: src/views/iam/SignInSimple.tsx:53

Login endpoint. Defaults to /api/iam/v1/login. The endpoint must accept POST { handle, password } and return { success: boolean; token?: string; message?: string }.


onApiKeySignIn?

optional onApiKeySignIn?: (apiKey) => void

Defined in: src/views/iam/SignInSimple.tsx:47

Called when the user authenticates with an API key. If not provided the "Sign in with API Key" button is hidden.

Parameters

apiKey

string

Returns

void


onSignIn

onSignIn: (token, handle) => void

Defined in: src/views/iam/SignInSimple.tsx:42

Called after a successful login with the JWT and the user handle. Typically used to store credentials in a Zustand / context store.

Parameters

token

string

handle

string

Returns

void


title?

optional title?: string

Defined in: src/views/iam/SignInSimple.tsx:57

Optional heading text. Defaults to "Datalayer OTEL".