actortoken

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by "gen"; DO NOT EDIT. This file is meant to be re-generated in place and/or deleted at any time.

Package actortoken provides the Actor Tokens API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, params *CreateParams) (*clerk.ActorToken, error)

Create creates a new actor token.

func Revoke

func Revoke(ctx context.Context, id string) (*clerk.ActorToken, error)

Revoke revokes a pending actor token.

Types

type Client

type Client struct {
	Backend clerk.Backend
}

Client is used to invoke the Actor Tokens API.

func NewClient

func NewClient(config *clerk.ClientConfig) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, params *CreateParams) (*clerk.ActorToken, error)

Create creates a new actor token.

func (*Client) Revoke

func (c *Client) Revoke(ctx context.Context, id string) (*clerk.ActorToken, error)

Revoke revokes a pending actor token.

type CreateParams

type CreateParams struct {
	clerk.APIParams
	UserID                      *string         `json:"user_id,omitempty"`
	Actor                       json.RawMessage `json:"actor,omitempty"`
	ExpiresInSeconds            *int64          `json:"expires_in_seconds,omitempty"`
	SessionMaxDurationInSeconds *int64          `json:"session_max_duration_in_seconds,omitempty"`
}

Jump to

Keyboard shortcuts

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