MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / generateErrorPage

Function generateErrorPage

packages/server/src/routes/oauth2/templates.ts:126–142  ·  view source on GitHub ↗
(error: string, message: string, details?: string)

Source from the content-addressed store, hash-verified

124}
125
126export const generateErrorPage = (error: string, message: string, details?: string): string => {
127 return generateOAuth2ResponsePage({
128 title: 'OAuth2 Authorization Error',
129 statusIcon: '✗',
130 statusText: 'Authorization Failed',
131 statusColor: '#f44336',
132 message,
133 details,
134 postMessageType: 'OAUTH2_ERROR',
135 postMessageData: {
136 success: false,
137 message,
138 error
139 },
140 autoCloseDelay: 3000
141 })
142}

Callers 1

index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected