diff --git a/control-plane/src/modules/auth/auth.ts b/control-plane/src/modules/auth/auth.ts index 4ab7f6fe..68e7f4ee 100644 --- a/control-plane/src/modules/auth/auth.ts +++ b/control-plane/src/modules/auth/auth.ts @@ -373,7 +373,7 @@ export const extractCustomAuthState = async ( if (!cluster.enable_custom_auth) { throw new AuthenticationError( "Custom auth is not enabled for this cluster", - "https://docs.inferable.ai/pages/auth#customer-provided-secrets" + "https://docs.inferable.ai/pages/custom-auth" ); } diff --git a/control-plane/src/modules/auth/custom.ts b/control-plane/src/modules/auth/custom.ts index 65ba6367..229bb473 100644 --- a/control-plane/src/modules/auth/custom.ts +++ b/control-plane/src/modules/auth/custom.ts @@ -34,7 +34,7 @@ export const verify = async ({ if (typeof cached === "object" && 'error' in cached && typeof cached.error === "string") { throw new AuthenticationError( cached.error, - "https://docs.inferable.ai/pages/auth#handlecustomerauth" + "https://docs.inferable.ai/pages/custom-auth" ); } return cached; @@ -56,7 +56,7 @@ export const verify = async ({ if (!functionDefinition) { throw new AuthenticationError( `${VERIFY_FUNCTION_ID} is not registered`, - "https://docs.inferable.ai/pages/auth#handlecustomerauth" + "https://docs.inferable.ai/pages/custom-auth" ); } @@ -80,7 +80,7 @@ export const verify = async ({ if (result.status == "success" && result.resultType !== "resolution") { throw new AuthenticationError( "Custom auth token is not valid", - "https://docs.inferable.ai/pages/auth#handlecustomerauth" + "https://docs.inferable.ai/pages/custom-auth" ); } @@ -94,7 +94,7 @@ export const verify = async ({ if (!result.result) { throw new AuthenticationError( `${VERIFY_FUNCTION_ID} did not return a result`, - "https://docs.inferable.ai/pages/auth#handlecustomerauth" + "https://docs.inferable.ai/pages/custom-auth" ); } @@ -105,7 +105,7 @@ export const verify = async ({ if (e instanceof JobPollTimeoutError) { throw new AuthenticationError( `Call to ${VERIFY_FUNCTION_ID} did not complete in time`, - "https://docs.inferable.ai/pages/auth#handlecustomerauth" + "https://docs.inferable.ai/pages/custom-auth" ); } diff --git a/sdk-react/README.md b/sdk-react/README.md index 6d450f39..f50e8b6b 100644 --- a/sdk-react/README.md +++ b/sdk-react/README.md @@ -47,6 +47,7 @@ The `useRun` hook returns an object with the following properties: #### Existing Runs + It can be used to interact with an existing run by specifying the `runId`: ```typescript const { messages, run, createMessage, start } = useRun({