Skip to content

Persisted records

rn_forge.auth.records

JSON-safe mappings for persisted sessions and login transactions.

session_from_record(record)

Build a session from a mapping containing every persisted session field.

session_to_record(info)

Return the mapping with the eleven persisted session fields for info.

transaction_from_record(record)

Build a transaction from a complete mapping, retaining its extra mapping.

transaction_to_record(tx)

Return the mapping with the eight persisted transaction fields for tx.