( user: PlatformUser | undefined, platform: string, )
| 10 | export function senderContext( |
| 11 | actor: ProviderActor | undefined, |
| 12 | platform: string, |
| 13 | ): ContextEntry[] { |
| 14 | if (!actor?.id) return []; |
| 15 | const label = `${actor.name ?? actor.id}${actor.email ? ` <${actor.email}>` : ""} (${platform} id ${actor.id})`; |
| 16 | return [{ description: `Requesting ${platform} user`, value: label }]; |
| 17 | } |
no outgoing calls
no test coverage detected