mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-15 04:16:27 +03:00
show badge if there is an update available, which is cached
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
import type { Me } from 'types';
|
||||
import type { Me, VersionsResponse } from 'types';
|
||||
|
||||
export interface AuthenticationContextValue {
|
||||
refresh: () => Promise<void>;
|
||||
signIn: (accessToken: string) => void;
|
||||
signOut: (redirect: boolean) => void;
|
||||
me?: Me;
|
||||
versions?: VersionsResponse;
|
||||
refreshVersions: () => Promise<void>;
|
||||
}
|
||||
|
||||
const AuthenticationContextDefaultValue = {} as AuthenticationContextValue;
|
||||
|
||||
Reference in New Issue
Block a user