package
0.34.3
Repository: https://github.com/sneat-co/sneat-go-core.git
Documentation: pkg.go.dev

# Functions

AccessControlAllowOrigin verifies HTTP header "Origin".
IsUnauthorizedError returns true if an error is because of unauthorized request.

# Variables

ErrNotABearerToken is returned when provided auth header is not a valid bearer token.
HandleError handles error and returns appropriate HTTP status code and error details as JSON.