refreshtoken

package
v3.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	WithRawResponse *RawClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options *core.RequestOptions) *Client

func (*Client) Delete

func (c *Client) Delete(
	ctx context.Context,

	userID string,
	opts ...option.RequestOption,
) error

Delete all refresh tokens for a user.

Example:

client.Users.RefreshToken.Delete(
    context.TODO(),
    "user_id",
)

func (*Client) List

Retrieve details for a user's refresh tokens.

Example:

request := &management.ListRefreshTokensRequestParameters{
    IncludeTotals: management.Bool(
        true,
    ),
    From: management.String(
        "from",
    ),
    Take: management.Int(
        1,
    ),
}
client.Users.RefreshToken.List(
    context.TODO(),
    "user_id",
    request,
)

type RawClient

type RawClient struct {
	// contains filtered or unexported fields
}

func NewRawClient

func NewRawClient(options *core.RequestOptions) *RawClient

func (*RawClient) Delete

func (r *RawClient) Delete(
	ctx context.Context,

	userID string,
	opts ...option.RequestOption,
) (*core.Response[any], error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL