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

Method defaultAgentEmail

internal/auth/auth.go:238–244  ·  view source on GitHub ↗
(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

236}
237
238func (ua *UserAuth) defaultAgentEmail(ctx context.Context, userID string) string {
239 agents, err := ua.store.ListAgentsByUser(ctx, userID)
240 if err != nil || len(agents) == 0 {
241 return ""
242 }
243 return agents[0].EmailAddress()
244}
245
246func (ua *UserAuth) writeCLIHandoffPage(w http.ResponseWriter, r *http.Request, user *identity.User, handoff *cliLoginHandoff) error {
247 key, err := ua.store.CreateAPIKey(r.Context(), user.ID, "CLI login", nil)

Callers 1

writeCLIHandoffPageMethod · 0.95

Calls 2

ListAgentsByUserMethod · 0.80
EmailAddressMethod · 0.80

Tested by

no test coverage detected