2019-07-01 10:43:03 -06:00
|
|
|
interface Token {
|
2017-06-29 12:54:02 -06:00
|
|
|
unencoded: UnencodedToken;
|
|
|
|
encoded: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AuthState {
|
|
|
|
token: Token;
|
|
|
|
}
|
|
|
|
|
2019-07-01 10:43:03 -06:00
|
|
|
interface UnencodedToken {
|
2017-06-29 12:54:02 -06:00
|
|
|
/** ISSUER - Where token came from (API URL). */
|
|
|
|
iss: string;
|
|
|
|
/** Where to download RPi software */
|
|
|
|
os_update_server: string;
|
2018-01-10 17:37:36 -07:00
|
|
|
/** Where to download beta RPi software */
|
|
|
|
beta_os_update_server?: string;
|
2017-11-10 12:54:34 -07:00
|
|
|
/** JSON Token Identifier- auto sync needs this to hear its echo on MQTT */
|
|
|
|
jti: string;
|
2017-06-29 12:54:02 -06:00
|
|
|
}
|