terrors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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")

	TErrStorageTypeSecretMissing  = errors.New("the 'TAUTH_STORAGE' env var must be set")
	TErrStorageTypeDoesNotExist   = errors.New("the storage type specified in 'TAUTH_STORAGE' does not exist")
	TErrStorageModeDoesNotExist   = errors.New("the specified storage mode does not exist")
	TErrDBConnectionStringMissing = errors.New("the env var 'TAUTH_DB_CONNECTION' must be set")
	TErrDBConnectionStringInvalid = errors.New("the connection string set in the env var 'TAUTH_DB_CONNECTION' is not valid")
	TErrDBDriverMissing           = errors.New("the env var 'TAUTH_DB_DRIVER' must be set")
	TErrDBDriverInvalid           = errors.New("the driver set in the env var 'TAUTH_DB_DRIVER' is not valid")
)

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