Creates a context provider that requires Bearer token authentication.
// With custom token validationconst callable = onCallGenkit( { contextProvider: requireBearerToken(async (token) => { const user = await verifyJWT(token); return { auth: { user } }; }) }, myFlow); Copy
// With custom token validationconst callable = onCallGenkit( { contextProvider: requireBearerToken(async (token) => { const user = await verifyJWT(token); return { auth: { user } }; }) }, myFlow);
Creates a context provider that requires Bearer token authentication.