synapsecns/sanguine

View on GitHub
services/rfq/api/rest/auth.go

Summary

Maintainability
A
45 mins
Test Coverage

Function EIP191Auth has 7 return statements (exceeds 4 allowed).
Open

func EIP191Auth(c *gin.Context, deadline int64) (accountRecovered common.Address, err error) {
    auth := c.Request.Header.Get(AuthorizationHeader)

    // parse <timestamp>:<signature>
    s := strings.Split(auth, ":")
Severity: Major
Found in services/rfq/api/rest/auth.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status