Updates on plugin apis and example

This commit is contained in:
advplyr 2024-12-21 16:48:56 -06:00
parent fc17a74865
commit 048790b33a
11 changed files with 258 additions and 124 deletions

View file

@ -16,7 +16,7 @@ const Logger = require('./Logger')
*/
class Auth {
constructor() {
this.pluginData = []
this.pluginManifests = []
// Map of openId sessions indexed by oauth2 state-variable
this.openIdAuthSession = new Map()
@ -940,7 +940,7 @@ class Auth {
userDefaultLibraryId: user.getDefaultLibraryId(libraryIds),
serverSettings: Database.serverSettings.toJSONForBrowser(),
ereaderDevices: Database.emailSettings.getEReaderDevices(user),
plugins: this.pluginData,
plugins: this.pluginManifests,
Source: global.Source
}
}