Skip to content

Commit

Permalink
chore: Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNti committed Nov 14, 2024
1 parent 4cfdc31 commit a456a12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions oauthapplication/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func NewClient(config *clerk.ClientConfig) *Client {
}
}

// fetches a single OAuth application by its ID.
// Get fetches a single OAuth application by its ID.
func (c *Client) Get(ctx context.Context, id string) (*clerk.OAuthApplication, error) {
path, err := clerk.JoinPath(path, id)
if err != nil {
Expand All @@ -39,7 +39,7 @@ type ListParams struct {
clerk.ListParams
}

// Retrieves all OAuth applications.
// List retrieve all OAuth applications.
func (c *Client) List(ctx context.Context, params *ListParams) (*clerk.OAuthApplicationList, error) {
req := clerk.NewAPIRequest(http.MethodGet, path)
req.SetParams(params)

Check failure on line 45 in oauthapplication/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.19

cannot use params (variable of type *ListParams) as type clerk.Params in argument to req.SetParams:

Check failure on line 45 in oauthapplication/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.20

cannot use params (variable of type *ListParams) as clerk.Params value in argument to req.SetParams: *ListParams does not implement clerk.Params (missing method ToQuery)

Check failure on line 45 in oauthapplication/client.go

View workflow job for this annotation

GitHub Actions / Test: go v1.21

cannot use params (variable of type *ListParams) as clerk.Params value in argument to req.SetParams: *ListParams does not implement clerk.Params (ambiguous selector *ListParams.ToQuery)
Expand Down Expand Up @@ -72,7 +72,7 @@ type OAuthApplicationUpdateParams struct {
Scopes *string `json:"scopes,omitempty"`
}

// Updates an existing OAuth application.
// Update update an existing OAuth application.
func (c *Client) Update(ctx context.Context, id string, params *OAuthApplicationUpdateParams) (*clerk.OAuthApplication, error) {
path, err := clerk.JoinPath(path, id)
if err != nil {
Expand All @@ -85,7 +85,7 @@ func (c *Client) Update(ctx context.Context, id string, params *OAuthApplication
return authApplication, err
}

// Deletes the given OAuth application
// Delete delete the given OAuth application
func (c *Client) DeleteOAuthApplication(ctx context.Context, id string) (*clerk.DeletedResource, error) {
path, err := clerk.JoinPath(path, id)
if err != nil {
Expand All @@ -97,7 +97,7 @@ func (c *Client) DeleteOAuthApplication(ctx context.Context, id string) (*clerk.
return authApplication, err
}

// Rotates the OAuth application's client secret
// RotateClientSecret rotate the OAuth application's client secret
func (c *Client) RotateClientSecret(ctx context.Context, id string) (*clerk.OAuthApplication, error) {
path, err := clerk.JoinPath(path, id, "rotate_secret")
if err != nil {
Expand Down

0 comments on commit a456a12

Please sign in to comment.