peertube-plugin-auth-openid-connect: Upgrade openid-client
The current version of openid-client is not compatible with the latest nodejs LTS release (18), which is supported by peertube itself. When using nodejs version 18, peertube currently fails to start with
error[11/17/2022, 7:23:16 PM] Cannot register plugins and themes.
{
"err": {
"err": {
"stack": "Error: Command failed: yarn install --pure-lockfile\nwarning package.json: No license field\nwarning Skipping preferred cache folder \"/.cache/yarn\" because it is not writable.\nwarning Selected the next writable cache folder in the list, will be \"/tmp/.yarn-cache-957\".\nwarning No license field\nerror openid-client@5.1.1: The engine \"node\" is incompatible with this module. Expected version \"^12.19.0 || ^14.15.0 || ^16.13.0\". Got \"18.12.1\"\nerror Found incompatible module.\n\n at ChildProcess.exithandler (node:child_process:412:12)\n at ChildProcess.emit (node:events:513:28)\n at maybeClose (node:internal/child_process:1091:16)\n at ChildProcess._handle.onexit (node:internal/child_process:302:5)",
"message": "Command failed: yarn install --pure-lockfile\nwarning package.json: No license field\nwarning Skipping preferred cache folder \"/.cache/yarn\" because it is not writable.\nwarning Selected the next writable cache folder in the list, will be \"/tmp/.yarn-cache-957\".\nwarning No license field\nerror openid-client@5.1.1: The engine \"node\" is incompatible with this module. Expected version \"^12.19.0 || ^14.15.0 || ^16.13.0\". Got \"18.12.1\"\nerror Found incompatible module.\n",
"code": 1,
"killed": false,
"signal": null,
"cmd": "yarn install --pure-lockfile"
},
"stdout": "yarn install v1.22.19\n[1/4] Resolving packages...\n[2/4] Fetching packages...\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n",
"stderr": "warning package.json: No license field\nwarning Skipping preferred cache folder \"/.cache/yarn\" because it is not writable.\nwarning Selected the next writable cache folder in the list, will be \"/tmp/.yarn-cache-957\".\nwarning No license field\nerror openid-client@5.1.1: The engine \"node\" is incompatible with this module. Expected version \"^12.19.0 || ^14.15.0 || ^16.13.0\". Got \"18.12.1\"\nerror Found incompatible module.\n"
}
}
This patch works for me, but is not tested well enough for me to feel confident about opening a merge request.