UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

1 lines 506 B
{"version":3,"file":"hash-preview-token.mjs","names":[],"sources":["../../../src/utils/helpers/hash-preview-token.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\n\n/** Creates a deterministic digest so raw preview bearer tokens are never stored. */\nconst hashPreviewToken = (token: string): string =>\n\tcreateHash(\"sha256\").update(token).digest(\"hex\");\n\nexport default hashPreviewToken;\n"],"mappings":"yCAGA,MAAM,EAAoB,GACzB,EAAW,QAAQ,CAAC,CAAC,OAAO,CAAK,CAAC,CAAC,OAAO,KAAK"}