Versions in this module Expand all Collapse all v0 v0.8.4 Oct 11, 2022 Changes in this version + const AgentToken + const CsrfToken + const HookToken + const SessToken + const SignerAlgo + const UserToken + func CheckCsrf(r *http.Request, fn SecretFunc) error + type SecretFunc func(*Token) (string, error) + type Token struct + Kind string + Text string + func New(kind, text string) *Token + func Parse(raw string, fn SecretFunc) (*Token, error) + func ParseRequest(r *http.Request, fn SecretFunc) (*Token, error) + func (t *Token) Sign(secret string) (string, error) + func (t *Token) SignExpires(secret string, exp int64) (string, error)