import { api } from '@/lib/api'; import { AuthenticationResponse } from '@activepieces/shared'; /** * Django Trust Authentication API * * Uses the custom django-trust endpoint instead of EE managed-authn. * This allows SmoothSchedule to embed Activepieces using Django-signed JWTs. */ export const managedAuthApi = { generateApToken: async (request: { externalAccessToken: string }) => { // Use our custom django-trust authentication endpoint return api.post( `/v1/authentication/django-trust`, { token: request.externalAccessToken }, ); }, };