(w http.ResponseWriter, name, value string, maxAge int)
| 224 | } |
| 225 | |
| 226 | func (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 | |
| 238 | func (ua *UserAuth) defaultAgentEmail(ctx context.Context, userID string) string { |
| 239 | agents, err := ua.store.ListAgentsByUser(ctx, userID) |
no outgoing calls
no test coverage detected