Home / Class/ ErrTokenNotFound Class — fiber Architecture

ErrTokenNotFound Class — fiber Architecture

Architecture documentation for the ErrTokenNotFound class in csrf.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  10d5ce6b_1eeb_5f4b_46df_06626edea0e3["ErrTokenNotFound"]
  57b9eed3_6274_c073_f0db_e3c30b2a59fe["csrf.go"]
  10d5ce6b_1eeb_5f4b_46df_06626edea0e3 -->|defined in| 57b9eed3_6274_c073_f0db_e3c30b2a59fe

Relationship Graph

Source Code

middleware/csrf/csrf.go lines 16–28

var (
	ErrTokenNotFound    = errors.New("csrf: token not found")
	ErrTokenInvalid     = errors.New("csrf: token invalid")
	ErrFetchSiteInvalid = errors.New("csrf: sec-fetch-site header invalid")
	ErrRefererNotFound  = errors.New("csrf: referer header missing")
	ErrRefererInvalid   = errors.New("csrf: referer header invalid")
	ErrRefererNoMatch   = errors.New("csrf: referer does not match host or trusted origins")
	ErrOriginInvalid    = errors.New("csrf: origin header invalid")
	ErrOriginNoMatch    = errors.New("csrf: origin does not match host or trusted origins")
	errOriginNotFound   = errors.New("origin not supplied or is null") // internal error, will not be returned to the user
	dummyValue          = []byte{'+'}                                  // dummyValue is a placeholder value stored in token storage. The actual token validation relies on the key, not this value.

)

Frequently Asked Questions

What is the ErrTokenNotFound class?
ErrTokenNotFound is a class in the fiber codebase, defined in middleware/csrf/csrf.go.
Where is ErrTokenNotFound defined?
ErrTokenNotFound is defined in middleware/csrf/csrf.go at line 16.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free