hongbo-miao/hongbomiao.com

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

Summary

Maintainability
A
45 mins
Test Coverage

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

func VerifyJWTTokenAndExtractMyID(r *http.Request) (string, error) {
    config := GetConfig()

    tokenString, err := extractBearerToken(r)
    if err != nil {

    There are no issues that match your filters.

    Category
    Status