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

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

Parameters

token: string

Return Type

Promise<TokenHash>

Usage

import { hashSessionToken } from "doc.ts";