terrors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package terrors defines sentinel errors returned by tauth.

Index

Constants

This section is empty.

Variables

View Source
var (
	TErrSecretKeyMissing            = errors.New("TAUTH_SECRET_KEY must be set")
	TErrUserRequired                = errors.New("'user' must not be empty")
	TErrRTExpTooLow                 = errors.New("the expiration for the access token is too low, minimum is 5 minutes")
	TErrATExpTooLow                 = errors.New("the expiration for the refresh token is too low, minimum is 1 minute")
	TErrTokensNotFound              = errors.New("the user does not have any stored tokens")
	TErrRefreshTokenMismatch        = errors.New("the provided refresh token does not match the stored one")
	TErrRefreshTokenExpired         = errors.New("the user's refresh token has expired")
	TErrFailedToExtractCustomClaims = errors.New("the system failed to extract the 'custom_claim' from the stored token")
	TErrUnexpectedClaimsType        = errors.New("the token has an unexpected claims type")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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