MCPcopy Create free account
hub / github.com/AleksK1NG/Go-Clean-Architecture-REST-API / Login

Method Login

internal/auth/usecase/usecase.go:155–179  ·  view source on GitHub ↗

Login user, returns user model with jwt token

(ctx context.Context, user *models.User)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

NewUnauthorizedErrorFunction · 0.92
GenerateJWTTokenFunction · 0.92
NewInternalServerErrorFunction · 0.92
ComparePasswordsMethod · 0.80
SanitizePasswordMethod · 0.80
FindByEmailMethod · 0.65

Tested by

no test coverage detected