friendship ended with social-app. php is my new best friend

fix claims

Changed files
+3 -3
+3 -3
index.php
···
->withHeader('alg', 'ES256')
->withHeader('typ', 'JWT')
->issuedBy($userInfo->did)
-
->withClaim('sub', 'https://'.SITE_DOMAIN.CLIENT_ID)
-
->withClaim('aud', 'did:web:'.str_replace("/", str_replace("https://", $pds)))
-
->withClaim('iat', strtotime('now'))
+
->relatedTo('https://'.SITE_DOMAIN.CLIENT_ID)
+
->permittedFor('did:web:'.str_replace("/", str_replace("https://", $pds)))
+
->issuedAt('iat', strtotime('now'))
->getToken($algorithm, $signing_key);
print_r($token->toString());