mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-28 05:35:28 +00:00
* Allowing removal of expiration date for refresh token * Adjust wording and add icon * Update current * Update src/translations/en.json Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com> * Update wording * Allow enable and disable * Better type * Better handle errors * Use relative date * Update src/panels/profile/ha-refresh-tokens-card.ts * Update API --------- Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
21 lines
420 B
TypeScript
21 lines
420 B
TypeScript
declare global {
|
|
interface HASSDomEvents {
|
|
"hass-refresh-tokens": undefined;
|
|
}
|
|
}
|
|
|
|
export type RefreshTokenType = "normal" | "long_lived_access_token";
|
|
|
|
export interface RefreshToken {
|
|
client_icon?: string;
|
|
client_id: string;
|
|
client_name?: string;
|
|
created_at: string;
|
|
expire_at?: string;
|
|
id: string;
|
|
is_current: boolean;
|
|
last_used_at?: string;
|
|
last_used_ip?: string;
|
|
type: RefreshTokenType;
|
|
}
|