Laravel AT Protocol Client (alpha & unstable)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use Identity::isDid() for DID validation

+2 -1
+2 -1
src/Session/SessionManager.php
··· 14 14 use SocialDept\AtpClient\Exceptions\HandleResolutionException; 15 15 use SocialDept\AtpClient\Exceptions\SessionExpiredException; 16 16 use SocialDept\AtpResolver\Facades\Resolver; 17 + use SocialDept\Resolver\Support\Identity; 17 18 18 19 class SessionManager 19 20 { ··· 35 36 protected function resolveToDid(string $handleOrDid): string 36 37 { 37 38 // If already a DID, return as-is 38 - if (str_starts_with($handleOrDid, 'did:')) { 39 + if (Identity::isDid($handleOrDid)) { 39 40 return $handleOrDid; 40 41 } 41 42