
We already include an .editorconfig that is supported by many editors, including emacs, so no need to repeat an emacs-specific modeline in every source file. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3431>
25 lines
468 B
JavaScript
25 lines
468 B
JavaScript
import * as Signals from '../misc/signals.js';
|
|
|
|
export class CredentialManager extends Signals.EventEmitter {
|
|
constructor(service) {
|
|
super();
|
|
|
|
this._token = null;
|
|
this._service = service;
|
|
}
|
|
|
|
get token() {
|
|
return this._token;
|
|
}
|
|
|
|
set token(t) {
|
|
this._token = t;
|
|
if (this._token)
|
|
this.emit('user-authenticated', this._token);
|
|
}
|
|
|
|
get service() {
|
|
return this._service;
|
|
}
|
|
}
|