P6
This commit is contained in:
@@ -16,9 +16,11 @@ export class ComputerUseSession {
|
||||
this.stepsUsed = 0;
|
||||
this.sessionId = `cu_${this.clock().toString(36)}`;
|
||||
this.expiresAt = this.clock() + 3 * 60 * 1000;
|
||||
return { session_id: this.sessionId, restore_token_present: Boolean(persist), monitors };
|
||||
return { session_id: this.sessionId, restore_token_present: Boolean(persist), monitors, backend: this.backend };
|
||||
}
|
||||
|
||||
setBackend(backend) { this.backend = ['portal-ei', 'ydotool', 'none'].includes(backend) ? backend : 'none'; return this.backend; }
|
||||
|
||||
revoke() {
|
||||
this.active = false;
|
||||
this.sessionId = null;
|
||||
|
||||
Reference in New Issue
Block a user