()
| 96 | |
| 97 | /** Read the client_id, throwing `ErrOAuthNotConfigured` when unset. */ |
| 98 | export function resolveClientId(): string { |
| 99 | const override = process.env["HYPERFRAMES_OAUTH_CLIENT_ID"]; |
| 100 | const id = override && override.length > 0 ? override : DEFAULT_CLIENT_ID; |
| 101 | if (!id || id.length === 0) throw ErrOAuthNotConfigured(); |
| 102 | return id; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * For command-entry points: throw the standard `ErrOAuthNotConfigured` |
no test coverage detected