20 lines
452 B
TypeScript
20 lines
452 B
TypeScript
interface Token {
|
|
unencoded: UnencodedToken;
|
|
encoded: string;
|
|
}
|
|
|
|
export interface AuthState {
|
|
token: Token;
|
|
}
|
|
|
|
interface UnencodedToken {
|
|
/** ISSUER - Where token came from (API URL). */
|
|
iss: string;
|
|
/** Where to download RPi software */
|
|
os_update_server: string;
|
|
/** Where to download beta RPi software */
|
|
beta_os_update_server?: string;
|
|
/** JSON Token Identifier- auto sync needs this to hear its echo on MQTT */
|
|
jti: string;
|
|
}
|