MCPcopy
hub / github.com/payloadcms/payload / refreshFunction

Function refreshFunction

test/server-functions/components/refreshFunction.tsx:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5import config from '../config.js'
6
7export async function refreshFunction() {
8 try {
9 return await refresh({
10 config,
11 })
12 } catch (error) {
13 throw new Error(`Refresh failed: ${error instanceof Error ? error.message : 'Unknown error'}`)
14 }
15}

Callers 1

RefreshTokenFunction · 0.85

Calls 1

refreshFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…