function hashSessionToken
hashSessionToken(token: string): Promise<string>

Hash a session token using SHA-256 Used to store session lookups without exposing the actual token

Parameters

token: string

Return Type

Promise<string>

Usage

import { hashSessionToken } from "doc.ts";