Skip to main content

UserBadgeProps

Datalayer Core


Datalayer Core / UserBadgeProps

Interface: UserBadgeProps

Defined in: src/views/profile/UserBadge.tsx:30

Properties

expirationWarningMs?

optional expirationWarningMs?: number

Defined in: src/views/profile/UserBadge.tsx:50

Threshold (in milliseconds) below which the expiration timestamp is rendered in attention.fg (yellow) to warn that the token is about to expire. Tokens already past exp render in danger.fg (red); tokens further out than this threshold render in success.fg (green). Defaults to 10_800_000 (3 hours).


showExpandToggle?

optional showExpandToggle?: boolean

Defined in: src/views/profile/UserBadge.tsx:42

When the popover is rendered in the small variant, show a + affordance in the top-right corner of the header that lets the user expand the overlay to the full variant (raw JSON claims).

Defaults to true. Ignored when variant is already full.


token

token: string

Defined in: src/views/profile/UserBadge.tsx:32

Raw JWT bearer token.


variant?

optional variant?: "small" | "full"

Defined in: src/views/profile/UserBadge.tsx:34

Display variant for the claims overlay.