parseRecoveryCodes()
function parseRecoveryCodes(node: undefined | UiNodeText): OryRecoveryCode[]
Parses the codes of the lookup_secret_codes node, in the order Ory sent them.
To find the node in flow.ui.nodes, narrow the nodes with isUiNodeText.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | undefined | UiNodeText | The lookup_secret_codes text node, if the flow has one. |
Returns
The codes, or an empty list if the node is missing.