this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

and then add them as valid methods

+6 -1
+5
auth.go
··· 10 10 // The contents of this file have been borrowed from here: https://github.com/orthanc/bluesky-go-feeds/blob/f719f113f1afc9080e50b4b1f5ca239aa3073c79/web/auth.go#L20-L46 11 11 // It essentially allows the signing method that atproto uses for JWT to be used when verifying the JWT that they send in requests 12 12 13 + const ( 14 + ES256K = "ES256K" 15 + ES256 = "ES256" 16 + ) 17 + 13 18 type AtProtoSigningMethod struct { 14 19 alg string 15 20 }
+1 -1
server.go
··· 199 199 } 200 200 token := strings.TrimSpace(strings.Replace(headerValues[0], "Bearer ", "", 1)) 201 201 202 - validMethods := jwt.WithValidMethods([]string{"alg"}) 202 + validMethods := jwt.WithValidMethods([]string{ES256, ES256K}) 203 203 204 204 keyfunc := func(token *jwt.Token) (interface{}, error) { 205 205 return token, nil