package
Version:
v0.0.13
Opens a new window with list of versions in this module.
Published: Jun 22, 2025
License: AGPL-3.0-or-later
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ErrTokenNotFound is returned when the token file does not exist.
Compare checks if the provided raw token matches the stored token.
Read reads the stored token from the specified path and returns it.
RawToken is a type that represents a raw token in hexadecimal format.
It must not be persisted by the server.
Generate creates a new random token and returns its raw hexadecimal
representation and a hashed version suitable for storage.
Write generates a new token, writes it to the specified path, and
returns the raw and stored representations.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.