Merged in fix/cache-service-token (pull request #1571)
fix(servicetoken): cache it when using unstable_cache * fix(servicetoken): cache it when using unstable_cache * Refactor and using cacheOrGet as get/set * Refactor * Use expiresAt from cached token Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -139,7 +139,6 @@ export const safeProtectedProcedure = baseProcedure.use(async function (opts) {
|
||||
|
||||
export const serviceProcedure = baseProcedure.use(async (opts) => {
|
||||
const token = await getServiceToken()
|
||||
console.log("[DEBUG] token", typeof token, token)
|
||||
const { access_token } = token
|
||||
if (!access_token) {
|
||||
throw internalServerError(`[serviceProcedure] No service token`)
|
||||
|
||||
Reference in New Issue
Block a user