mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-03 21:44:38 +01:00
Update serverConnectionConfig to include server version, update server track URL and server cover image URL based on server version
This commit is contained in:
1 parent
b99e0b112b
commit
44613e12f1
10 files changed
+106
-16
No files matched your search
@@ -55,7 +55,7 @@ export default function ({ store, $db }, inject) {
|
||||
* @param {*} data - Request data
|
||||
* @param {Object} headers - Request headers
|
||||
* @param {Object} options - Additional options
|
||||
* @param {{ id: string, address: string }} serverConnectionConfig
|
||||
* @param {{ id: string, address: string, version: string }} serverConnectionConfig
|
||||
* @returns {Promise} - Promise that resolves with the response data
|
||||
*/
|
||||
async handleTokenRefresh(method, url, data, headers, options, serverConnectionConfig) {
|
||||
@@ -161,7 +161,7 @@ export default function ({ store, $db }, inject) {
|
||||
/**
|
||||
* Updates the store and secure storage with new tokens
|
||||
* @param {Object} tokens - Object containing accessToken and refreshToken
|
||||
* @param {{ id: string, address: string }} serverConnectionConfig
|
||||
* @param {{ id: string, address: string, version: string }} serverConnectionConfig
|
||||
* @returns {Promise} - Promise that resolves when tokens are updated
|
||||
*/
|
||||
async updateTokens(tokens, serverConnectionConfig) {
|
||||
|
||||
Reference in new issue
Block a user