forked from mystiq/hydrogen-web
some comments
This commit is contained in:
parent
ec925d7c49
commit
95bef00054
1 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,8 @@ class RequestWrapper {
|
||||||
|
|
||||||
export default class HomeServerApi {
|
export default class HomeServerApi {
|
||||||
constructor(homeserver, accessToken) {
|
constructor(homeserver, accessToken) {
|
||||||
|
// store these both in a closure somehow so it's harder to get at in case of XSS?
|
||||||
|
// one could change the homeserver as well so the token gets sent there, so both must be protected from read/write
|
||||||
this._homeserver = homeserver;
|
this._homeserver = homeserver;
|
||||||
this._accessToken = accessToken;
|
this._accessToken = accessToken;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue