From a456a123cd6de869019a7d51a25d44caebeb48c6 Mon Sep 17 00:00:00 2001 From: Alexandros Ntitoras Date: Thu, 14 Nov 2024 13:24:18 +0200 Subject: [PATCH] chore: Fix typos --- oauthapplication/client.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oauthapplication/client.go b/oauthapplication/client.go index cbb490d..ae3af7d 100644 --- a/oauthapplication/client.go +++ b/oauthapplication/client.go @@ -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 { @@ -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) @@ -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 { @@ -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 { @@ -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 {