@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 552 B
Source Map (JSON)
{"version":3,"file":"hash-user-token.mjs","names":[],"sources":["../../../src/utils/helpers/hash-user-token.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n\n/**\n * Creates a deterministic SHA-256 hex digest for a user token so the raw token\n * never needs to be stored in `lucid_user_tokens`.\n */\nconst hashUserToken = (token: string): string =>\n\tcreateHash(\"sha256\").update(token).digest(\"hex\");\n\nexport default hashUserToken;\n"],"mappings":"yCAMA,MAAM,EAAiB,GACtB,EAAW,QAAQ,CAAC,CAAC,OAAO,CAAK,CAAC,CAAC,OAAO,KAAK"}