console.log('Client credentials loaded.');
},
error => {
- alert(error);
+ alert(
+ `Cannot retrieve OAuth Client credentials: ${error.text}. \n` +
+ 'Ensure you have correctly configured PeerTube (config/ directory), in particular the "webserver" section.'
+ );
}
);
logout() {
// TODO: make an HTTP request to revoke the tokens
this.user = null;
+
AuthUser.flush();
this.setStatus(AuthStatus.LoggedOut);