Skip to content

Commit

Permalink
Update PropelAuthUser.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pfvatterott committed Jan 16, 2025
1 parent e8293b6 commit b31b775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PropelAuth/Models/PropelAuthUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getPictureUrl(): ?string

public function getMetadata(): ?array
{
return $this->getRaw()['metadata'] ?? null;
return $this->getUserProperty('metadata');
}

public function getLegacyUserId(): ?string
Expand Down Expand Up @@ -130,7 +130,7 @@ public function getActiveOrg(): ?OrgMemberInfo

public function getActiveOrgId(): ?string
{
return $this->getRaw()['org_member_info']['org_id'] ?? null;
return $this->getRaw()['org_member_info'] ?? [] ['org_id'] ?? null;
}

public function getAccessToken(): string
Expand Down

0 comments on commit b31b775

Please sign in to comment.