Skip to content

Unable to create actor tokens #19

@clarkeash

Description

@clarkeash

To create an actor token with the sdk like so:

use Clerk\Backend\Models\Operations\Actor;
use Clerk\Backend\Models\Operations\CreateActorTokenRequestBody;

$actor = new Actor();
$sdk->actorTokens->create(new CreateActorTokenRequestBody(
    userId: '...',
    actor: $actor
));

The Clerk\Backend\Models\Operations\Actor is has no properties so there is no way to set the sub which is required, and ideally you should be able to add additional data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions