token

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: GPL-3.0 Imports: 1 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedTokenType = errors.New("unexpected token type")
)

Functions

This section is empty.

Types

type Token

type Token string

Token represents a token type

var (
	// RefreshToken represents a refresh token
	RefreshToken Token = "refresh_token"

	// AccessToken represents an access token
	AccessToken Token = "access_token"
)

func (Token) Abbreviation added in v0.4.2

func (t Token) Abbreviation() (string, error)

Abbreviation returns the abbreviation of the token

Returns:

  • string: The abbreviation of the token
  • error: An error if the token type is unexpected

func (Token) String

func (t Token) String() string

String returns the string representation of the token

Returns:

  • string: The string representation of the token

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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