Update readers to handle token refresh

This commit is contained in:
advplyr
2025-07-15 17:22:45 -05:00
parent 80ee88b488
commit f4e0a6121f
7 changed files with 243 additions and 42 deletions
+1 -7
View File
@@ -77,9 +77,6 @@ export default {
}
},
computed: {
userToken() {
return this.$store.getters['user/getToken']
},
libraryItemId() {
return this.libraryItem?.id
},
@@ -247,10 +244,7 @@ export default {
// TODO: Handle JWT auth refresh
const buff = await this.$axios.$get(this.url, {
responseType: 'blob',
headers: {
Authorization: `Bearer ${this.userToken}`
}
responseType: 'blob'
})
const archive = await Archive.open(buff)