PersistentAI API Documentation / @persistent-ai/fireflow-trpc / server / handleAuthorize
Function: handleAuthorize()
handleAuthorize(
req,res,authService,frontendUrl):Promise<void>
Defined in: packages/fireflow-trpc/server/oauth/authorize.ts:22
Handle the OAuth /oauth/authorize endpoint.
GET — Check ff_session cookie for auto-approve, otherwise redirect to frontend. POST — Not supported (removed server-rendered login page).
The frontend at FRONTEND_URL/oauth/authorize handles user authentication and calls app.issueAuthCode tRPC procedure to generate authorization codes.
Parameters
req
IncomingMessage
res
ServerResponse
authService
frontendUrl
string
Returns
Promise<void>