all repos

onasty @ 2d89a90

a one-time notes service
2 files changed, 3 insertions(+), 3 deletions(-)
chore: fix doc comments
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-03-29 14:24:51 +0200
Authored at: 2025-03-27 22:57:53 +0200
Parent: 445822d
M e2e/e2e_utils_test.go
···
        18
        18
         	return r

      
        19
        19
         }

      
        20
        20
         

      
        21
        
        -// readBodyAndUnjsonify reads body of `httptest.ResponseRecorder` and unmarshalls it into res

      
        
        21
        +// readBodyAndUnjsonify reads body of [httptest.ResponseRecorder] and unmarshalls it into res

      
        22
        22
         //

      
        23
        23
         // Example:

      
        24
        24
         //

      ···
        32
        32
         	e.require.NoError(err)

      
        33
        33
         }

      
        34
        34
         

      
        35
        
        -// httpRequest sends http request to the server and returns `httptest.ResponseRecorder`

      
        
        35
        +// httpRequest sends http request to the server and returns [httptest.ResponseRecorder]

      
        36
        36
         // content-type always set to application/json

      
        37
        37
         func (e *AppTestSuite) httpRequest(

      
        38
        38
         	method, url string,

      
M internal/jwtutil/jwtutil.go
···
        58
        58
         

      
        59
        59
         func (j *JWTUtil) Parse(token string) (Payload, error) {

      
        60
        60
         	var claims jwt.RegisteredClaims

      
        61
        
        -	_, err := jwt.ParseWithClaims(token, &claims, func(t *jwt.Token) (interface{}, error) {

      
        
        61
        +	_, err := jwt.ParseWithClaims(token, &claims, func(t *jwt.Token) (any, error) {

      
        62
        62
         		if _, ok := t.Method.(*jwt.SigningMethodHMAC); !ok {

      
        63
        63
         			return nil, ErrUnexpectedSigningMethod

      
        64
        64
         		}