Skip to content

Commit

Permalink
chore: make token creation fields optional (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulkr authored Oct 8, 2024
1 parent 417812b commit 8622869
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "integrationos/authkit-php",
"version": "1.3.0",
"version": "1.4.0",
"type": "library",
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions src/AuthKitToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ private function createEmbedToken($connected_platforms, $event_links, $settings)
"connectedPlatforms" => $connected_platforms,
"eventIncToken" => $event_links["token"]
],
"group" => $event_links["group"],
"label" => $event_links["label"],
"identity" => $event_links["identity"],
"identityType" => $event_links["identityType"],
"group" => $event_links["group"] ?? null,
"label" => $event_links["label"] ?? null,
"identity" => $event_links["identity"] ?? null,
"identityType" => $event_links["identityType"] ?? null,
"environment" => str_starts_with($this->secret, "sk_test") ? "test" : "live",
"expiresAt" => (time() * 1000) + (5 * 1000 * 60),
"sessionId" => $this->getSessionId()['id'],
Expand Down

0 comments on commit 8622869

Please sign in to comment.