MCPcopy Index your code
hub / github.com/coder/coder / Fill

Method Fill

coderd/workspaceapps/token.go:58–63  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

56}
57
58func (e *EncryptedAPIKeyPayload) Fill(now time.Time) {
59 e.Issuer = "coderd"
60 e.Audience = jwt.Audience{"wsproxy"}
61 e.Expiry = jwt.NewNumericDate(now.Add(time.Minute))
62 e.NotBefore = jwt.NewNumericDate(now.Add(-time.Minute))
63}
64
65func (e EncryptedAPIKeyPayload) Validate(ex jwt.Expected) error {
66 if e.NotBefore == nil {

Callers 1

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected