diff options
author | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@framasoft.org> | 2020-11-20 15:36:43 +0100 |
commit | 74fd2643b43057c25558b3da79398efe104e2660 (patch) | |
tree | 4fd7dd84775780eed82bc4b3caaa328c3526a14c /client/src | |
parent | 8f3ad70874f8769f5340632754dc2ca7f4c82733 (diff) | |
download | PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.gz PeerTube-74fd2643b43057c25558b3da79398efe104e2660.tar.zst PeerTube-74fd2643b43057c25558b3da79398efe104e2660.zip |
Provide express request to onLogout call
+ pluginInfo related changes
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/core/auth/auth.service.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts index 3410c5a6f..fd6062d3f 100644 --- a/client/src/app/core/auth/auth.service.ts +++ b/client/src/app/core/auth/auth.service.ts | |||
@@ -167,9 +167,13 @@ Ensure you have correctly configured PeerTube (config/ directory), in particular | |||
167 | const authHeaderValue = this.getRequestHeaderValue() | 167 | const authHeaderValue = this.getRequestHeaderValue() |
168 | const headers = new HttpHeaders().set('Authorization', authHeaderValue) | 168 | const headers = new HttpHeaders().set('Authorization', authHeaderValue) |
169 | 169 | ||
170 | this.http.post<void>(AuthService.BASE_REVOKE_TOKEN_URL, {}, { headers }) | 170 | this.http.post<{ redirectUrl?: string }>(AuthService.BASE_REVOKE_TOKEN_URL, {}, { headers }) |
171 | .subscribe( | 171 | .subscribe( |
172 | () => { /* nothing to do */ }, | 172 | res => { |
173 | if (res.redirectUrl) { | ||
174 | window.location.href = res.redirectUrl | ||
175 | } | ||
176 | }, | ||
173 | 177 | ||
174 | err => console.error(err) | 178 | err => console.error(err) |
175 | ) | 179 | ) |