constants

package
v0.0.0-...-68e8b16 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_BODY_SIZE             = 5 * 1024 * 1024 //5MB body limit for HTTP request bodies
	REFRESH_TOKEN_COOKIE      = "refresh_token"
	REFRESH_TOKEN_COOKIE_PATH = "/api/auth/refresh"
)

Variables

View Source
var (
	ErrorCodes errorCodes = errorCodes{
		AuthInvalidCredentials:   "AUTH_INVALID_CREDENTIALS",
		AuthInvalidScope:         "AUTH_INVALID_SCOPE",
		BadRequest:               "BAD_REQUEST",
		NotFound:                 "NOT_FOUND",
		InternalServerError:      "INTERNAL_SERVER_ERROR",
		AuthInvalidAuthHeader:    "AUTH_NO_AUTHORIZATION_HEADER",
		AuthInvalidAuthToken:     "AUTH_INVALID_TOKEN",
		AuthNoRefreshTokenCookie: "NO_REFRESH_TOKEN_COOKIE",
		AuthInvalidRefreshToken:  "AUTH_INVALID_REFRESH_TOKEN",
	}
)

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