@@ -22,24 +22,24 @@ type AuthProvider interface {
2222
2323// NewAuth creates a new AuthProvider with a static secret
2424func NewAuth (secret string ) AuthProvider {
25- return StaticAuth {Algorythm : DefaultAlgorithm , Private : []byte (secret )}
25+ return StaticAuth {Algorithm : DefaultAlgorithm , Private : []byte (secret )}
2626}
2727
2828// StaticAuth is an AuthProvider with a static configuration
2929type StaticAuth struct {
30- Algorythm string
30+ Algorithm string
3131 Private []byte
3232 Public []byte
3333}
3434
3535// GetJWTAuth returns a JWTAuth using the private secret when available, otherwise the public key
3636func (s StaticAuth ) GetJWTAuth (_ * http.Request , options ... jwt.ValidateOption ) (* jwtauth.JWTAuth , error ) {
37- if s .Algorythm == "" {
37+ if s .Algorithm == "" {
3838 return nil , fmt .Errorf ("missing algorithm" )
3939 }
4040
4141 if s .Private != nil {
42- return jwtauth .New (s .Algorythm , s .Private , s .Private , options ... ), nil
42+ return jwtauth .New (s .Algorithm , s .Private , s .Private , options ... ), nil
4343 }
4444
4545 if s .Public == nil {
@@ -52,7 +52,7 @@ func (s StaticAuth) GetJWTAuth(_ *http.Request, options ...jwt.ValidateOption) (
5252 return nil , fmt .Errorf ("parse public key: %w" , err )
5353 }
5454
55- return jwtauth .New (s .Algorythm , nil , pub , options ... ), nil
55+ return jwtauth .New (s .Algorithm , nil , pub , options ... ), nil
5656}
5757
5858// AuthStore is an interface for getting a StaticAuth by project ID
0 commit comments