MCPcopy Create free account
hub / github.com/dchest/authcookie / Parse

Function Parse

authcookie.go:133–170  ·  view source on GitHub ↗

Parse verifies the given cookie with the secret key and returns login and expiration time extracted from the cookie. If the cookie fails verification or is not well-formed, the function returns an error. Callers must: 1. Check for the returned error and deny access if it's present. 2. Check the r

(cookie string, secret []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

LoginFunction · 0.85
TestParseFunction · 0.85

Calls 1

getSignatureFunction · 0.85

Tested by 1

TestParseFunction · 0.68