diff --git a/packages/core/src/context/endpoint-context.ts b/packages/core/src/context/endpoint-context.ts index 417a0bed98..a561b914f3 100644 --- a/packages/core/src/context/endpoint-context.ts +++ b/packages/core/src/context/endpoint-context.ts @@ -33,7 +33,7 @@ export async function getCurrentAuthContext(): Promise { const context = als.getStore(); if (!context) { throw new Error( - "No auth context found. Please make sure you are calling this function within a `getCurrentAuthContext` callback.", + "No auth context found. Please make sure you are calling this function within a `runWithEndpointContext` callback.", ); } return context;