refactor(plugin): ♻️ Move parts of OpenID logic to plugin

This commit is contained in:
Jesse Wierzbinski 2024-08-29 20:32:04 +02:00
parent 69d7d50239
commit d51bae52c6
No known key found for this signature in database
17 changed files with 494 additions and 395 deletions

View file

@ -18,7 +18,7 @@ export default apiRoute((app) =>
app.on(meta.allowedMethods, meta.route, async (context) => {
const publicKey = await crypto.subtle.importKey(
"spki",
Buffer.from(config.oidc.jwt_key.split(";")[1], "base64"),
Buffer.from(config.oidc.keys?.public ?? "", "base64"),
"Ed25519",
true,
["verify"],