Implemented googleapi access token refresher

This commit is contained in:
Eclypsed
2024-02-17 00:31:11 -05:00
parent 416803af81
commit 85a17dcd89
6 changed files with 84 additions and 55 deletions

24
src/app.d.ts vendored
View File

@@ -49,6 +49,8 @@ declare global {
connectionId: string
serviceType: serviceType
username: string
serverName?: string
profilePicture?: string
}
// These Schemas should only contain general info data that is necessary for data fetching purposes.
@@ -117,23 +119,16 @@ declare global {
tokens: JFTokens
}
interface JFConnectionInfo extends ConnectionInfo {
serviceType: 'jellyfin'
servername: string
}
interface AuthData {
User: {
Id: string
}
AccessToken: string
}
interface User {
Name: string
Id: string
}
interface AuthData {
User: Jellyfin.User
AccessToken: string
}
interface System {
ServerName: string
}
@@ -204,11 +199,6 @@ declare global {
service: YTService
tokens: YTTokens
}
interface YTConnectionInfo extends ConnectionInfo {
serviceType: 'youtube-music'
profilePicture?: string
}
}
}