]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/auth/auth.service.ts
Merge branch 'webseed'
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / auth / auth.service.ts
index e12da0b340ed9fb5331eb849184e1c7387772944..a30c79c8685edafb59aa2bbdc6ba2d64afd17789 100644 (file)
@@ -41,7 +41,10 @@ export class AuthService {
           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.'
+          );
         }
       );
 
@@ -120,6 +123,7 @@ export class AuthService {
   logout() {
     // TODO: make an HTTP request to revoke the tokens
     this.user = null;
+
     AuthUser.flush();
 
     this.setStatus(AuthStatus.LoggedOut);