farmbot-web-frontend
Version:
Farmbot web frontend.
21 lines (20 loc) • 494 B
text/typescript
export interface AuthState {
/** The JSON Web Token as a string */
token: string;
/** Is the client logged in right now? */
authenticated?: boolean;
/** email address of the "subject" */
sub: string;
/** Issued at timestamp*/
iat: number;
/** Token identifier */
jti: string;
/** Issuer (server URL) */
iss: string;
/** Expiration timestamp */
exp: number;
/** MQTT broker hostname */
mqtt: string;
/** UUID of bot as stored on API server. */
bot: string;
}