()
| 127 | * `process.env.AGENT_USER_EMAIL`. |
| 128 | */ |
| 129 | export function getRequestUserEmail(): string | undefined { |
| 130 | const store = als.getStore(); |
| 131 | if (store !== undefined) return store.userEmail; |
| 132 | return process.env.AGENT_USER_EMAIL; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Get the current request's org ID. |
no outgoing calls