SetApprovalSigner wires in the magic-link signer after construction so callers (and tests) that don't need HITL magic-link endpoints don't have to know about it. When nil, handleApproveMagicLink / handleRejectMagicLink respond with 404.
(s *approvaltoken.Signer)
| 423 | // have to know about it. When nil, handleApproveMagicLink / |
| 424 | // handleRejectMagicLink respond with 404. |
| 425 | func (a *API) SetApprovalSigner(s *approvaltoken.Signer) { a.approvalSigner = s } |
| 426 | |
| 427 | // SetNotifier wires in the HITL notifier. When nil, holdForApproval |
| 428 | // still persists the pending message but doesn't fire the email — useful |
no outgoing calls