DriveBackupStorage

constructor(fileName: String, tokenProvider: suspend (forceRefresh: Boolean) -> String)

Parameters

fileName

the single file we keep in appDataFolder (overwritten on each store)

tokenProvider

yields a valid drive.appdata access token; called again (with forceRefresh=true) once on a 401 so an expired token is transparently renewed.