MCPcopy
hub / github.com/claabs/epicgames-freegames-node / notify

Method notify

src/device-login.ts:175–186  ·  view source on GitHub ↗
(reason: NotificationReason, inUrl?: string)

Source from the content-addressed store, hash-verified

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();

Callers 2

testServerNotifyMethod · 0.95
newDeviceAuthLoginMethod · 0.95

Calls 2

getLocaltunnelUrlFunction · 0.85
sendNotificationFunction · 0.85

Tested by

no test coverage detected