MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / setCookie

Method setCookie

internal/auth/auth.go:226–236  ·  view source on GitHub ↗
(w http.ResponseWriter, name, value string, maxAge int)

Source from the content-addressed store, hash-verified

224}
225
226func (ua *UserAuth) setCookie(w http.ResponseWriter, name, value string, maxAge int) {
227 http.SetCookie(w, &http.Cookie{
228 Name: name,
229 Value: value,
230 Path: "/",
231 HttpOnly: true,
232 Secure: ua.secure,
233 SameSite: http.SameSiteLaxMode,
234 MaxAge: maxAge,
235 })
236}
237
238func (ua *UserAuth) defaultAgentEmail(ctx context.Context, userID string) string {
239 agents, err := ua.store.ListAgentsByUser(ctx, userID)

Callers 2

HandleLoginMethod · 0.95
HandleCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected