Skip to content

TypeScript API / laikacms/auth / generateToken

Function: generateToken() ​

ts
function generateToken(): string;

Generates a new opaque PAT bearer string, e.g. lk_pat_Ab3fG.... Never persisted in plaintext; only hashToken(token) is stored.

Returns ​

string

Released under the MIT License.