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

Function New

authcookie.go:83–85  ·  view source on GitHub ↗

New returns a signed authentication cookie for the given login, expiration time, and secret key. If the login is empty, the function returns an empty string.

(login string, expires time.Time, secret []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

TestNewFunction · 0.85
TestNewNoPaddingFunction · 0.85
TestParseFunction · 0.85
TestLoginFunction · 0.85

Calls 1

newCookieFunction · 0.85

Tested by 4

TestNewFunction · 0.68
TestNewNoPaddingFunction · 0.68
TestParseFunction · 0.68
TestLoginFunction · 0.68