method Dialect.parseSessionId
Dialect.parseSessionId(headers: Headers): string | null

Extracts the session id from the login response headers.

Parameters

headers: Headers

Login response headers

Return Type

string | null

Session id, or null when the router refused the login

Usage

import { type Dialect } from "mod.ts";