kaancfidan/bouncer

View on GitHub
services/authenticator.go

Summary

Maintainability
A
0 mins
Test Coverage

Method AuthenticatorImpl.Authenticate has 5 return statements (exceeds 4 allowed).
Wontfix

func (a AuthenticatorImpl) Authenticate(authHeader string) (map[string]any, error) {
    splitToken := strings.Split(authHeader, " ")

    if len(splitToken) != 2 {
        return nil, fmt.Errorf("invalid authentication header format")
Severity: Major
Found in services/authenticator.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status