revoke_api_key_endpoint

package
v1.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package revoke_api_key_endpoint takes one of the account's keys out of use.

Revocation is where API access ends, so it does two things at once: the key stops minting, and the sign-ins it minted are ended. What was already minted keeps working until it expires -- consumers validate a token by its signature and its expiry, so a token's lifetime is the revocation window, and that lifetime is minutes.

Index

Constants

View Source
const DefaultPath = "/api/account/me/api-keys/revoke"

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	*initialization_endpoint.Endpoint
}

func New

func New() *Endpoint

func (*Endpoint) Initialize

func (e *Endpoint) Initialize(authorizer *authorizer_request_parser.Parser, db *sql.DB) error

type UrlInput

type UrlInput struct {
	Id string `json:"id" query:"id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL