this repo has no description
0
fork

Configure Feed

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

rename AddClientSecret to SetClientSecret

+4 -4
+1 -1
atproto/auth/oauth/cmd/oauth-web-demo/main.go
··· 107 107 if err != nil { 108 108 return err 109 109 } 110 - if err := config.AddClientSecret(priv, cctx.String("client-secret-key-id")); err != nil { 110 + if err := config.SetClientSecret(priv, cctx.String("client-secret-key-id")); err != nil { 111 111 return err 112 112 } 113 113 slog.Info("configuring confidential OAuth client")
+1 -1
atproto/auth/oauth/doc.go
··· 29 29 if err != nil { 30 30 return err 31 31 } 32 - if err := config.AddClientSecret(priv, "example1"); err != nil { 32 + if err := config.SetClientSecret(priv, "example1"); err != nil { 33 33 return err 34 34 } 35 35 }
+2 -2
atproto/auth/oauth/oauth.go
··· 73 73 return app 74 74 } 75 75 76 - // Creates a basic [ClientConfig] for use as a public (non-confidential) client. To upgrade to a confidential client, use this method and then [ClientConfig.AddClientSecret()]. 76 + // Creates a basic [ClientConfig] for use as a public (non-confidential) client. To upgrade to a confidential client, use this method and then [ClientConfig.SetClientSecret()]. 77 77 // 78 78 // The "scopes" array must include "atproto". 79 79 func NewPublicConfig(clientID, callbackURL string, scopes []string) ClientConfig { ··· 106 106 return config.PrivateKey != nil && config.KeyID != nil 107 107 } 108 108 109 - func (config *ClientConfig) AddClientSecret(priv crypto.PrivateKey, keyID string) error { 109 + func (config *ClientConfig) SetClientSecret(priv crypto.PrivateKey, keyID string) error { 110 110 switch priv.(type) { 111 111 case *crypto.PrivateKeyP256: 112 112 // pass