(error: string, message: string, details?: string)
| 124 | } |
| 125 | |
| 126 | export 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 | } |
no test coverage detected