Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Sep 12, 2023
1 parent e1d3391 commit b32d36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/middlewares/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func verifyJWT_RSA(token string, publicKey []byte) (bool, *jwt.Token, error) {
if block == nil || block.Type != "RSA PUBLIC KEY" {
fmt.Println("Failed to decode PEM block containing public key")
//os.Exit(1)
return nil, errors.New("Failed to decode PEM block containing public key")
return nil, &jwt.Token{}, errors.New("Failed to decode PEM block containing public key"),
}

Check failure on line 55 in api/middlewares/middlewares.go

View workflow job for this annotation

GitHub Actions / build (1.18.x)

syntax error: unexpected }, expecting expression

Check failure on line 55 in api/middlewares/middlewares.go

View workflow job for this annotation

GitHub Actions / build (1.19.x)

syntax error: unexpected }, expecting expression

Check failure on line 55 in api/middlewares/middlewares.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

syntax error: unexpected }, expected expression
//
var parsedToken *jwt.Token
Expand Down

0 comments on commit b32d36c

Please sign in to comment.