Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utility modules for alibi-core.

Modules§

cookie_utils
Shared cookie utilities for building Set-Cookie headers.
datetime
JSON timestamps matching JavaScript’s Date.toJSON() precision.
id
Random opaque verification identifiers. Physical model primary IDs remain the responsibility of the application’s database schema.
javascript
Shared JavaScript primitive coercion used by actual identity and storage boundaries.
json
JavaScript JSON numbers at request, response, callback and storage boundaries.
jwe
Authenticated direct-key JWE shared by account and session cookies.
password
Password hashing, verification and validation.
sessions
Session identifiers shared by SQL stores and the in-memory test store.
username
Shared username normalization and validation helpers.
wildcard
Better Auth’s wildcardMatch and the simple path globs used by rate limits.