hongbo-miao/hongbomiao.com

View on GitHub
api-go/internal/graphql_server/utils/sign_in.go

Summary

Maintainability
A
35 mins
Test Coverage

Function SignIn has 5 return statements (exceeds 4 allowed).
Open

func SignIn(email string, password string) (*JWT, error) {
    user, err := GetUserByEmail(email)
    if err != nil {
        log.Error().Err(err).Msg("GetUserByEmail")
        return nil, err
Severity: Major
Found in api-go/internal/graphql_server/utils/sign_in.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status