mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-23 19:15:41 +02: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:
parent
b99e0b112b
commit
44613e12f1
10 changed files with 106 additions and 16 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue