(reason: NotificationReason, inUrl?: string)
| 173 | } |
| 174 | |
| 175 | private async notify(reason: NotificationReason, inUrl?: string): Promise<void> { |
| 176 | let url: string | undefined; |
| 177 | if (inUrl) { |
| 178 | if (config.webPortalConfig?.localtunnel) { |
| 179 | url = await getLocaltunnelUrl(inUrl); |
| 180 | } else { |
| 181 | url = inUrl; |
| 182 | } |
| 183 | } |
| 184 | this.L.info({ reason, url }, 'Dispatching notification'); |
| 185 | await sendNotification(this.user, reason, url); |
| 186 | } |
| 187 | |
| 188 | private async startDeviceAuthorization(): Promise<DeviceAuthorizationCodeResponse> { |
| 189 | const clientCredentialsToken = await this.getClientCredentialsToken(); |
no test coverage detected