matterbridge-roborock-vacuum-plugin
Version:
Matterbridge Roborock Vacuum Plugin
20 lines • 703 B
JavaScript
/** Repository for persisting and retrieving authentication flow state. */
export class AuthenticationStateRepository {
persist;
constructor(persist) {
this.persist = persist;
}
/** Get current authentication flow state. */
async getAuthState() {
return (await this.persist.getItem('authenticateFlowState'));
}
/** Save authentication flow state. */
async saveAuthState(state) {
await this.persist.setItem('authenticateFlowState', state);
}
/** Clear authentication flow state. */
async clearAuthState() {
await this.persist.removeItem('authenticateFlowState');
}
}
//# sourceMappingURL=AuthenticationStateRepository.js.map