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

idk???

Changed files
+4 -5
+4 -5
index.php
···
'headers' => [
'User-Agent' => USER_AGENT_STR,
'Authorization' => 'Bearer: '.$token->toString()
-
],
-
'query' => [
-
'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
-
'client_assertion' => $token->toString()
]
]);
$provider = new BskyProvider($options, $client, $httpFactory, $httpFactory, $httpFactory);
···
$name = $provider->getName();
if (isset($_GET['login']) && $_GET['login'] === $name) {
-
$auth_url = $provider->getAuthorizationUrl();
header('Location: '.$auth_url);
die(1);
} else if (isset($_GET['code'], $_GET['state'])) {
···
'headers' => [
'User-Agent' => USER_AGENT_STR,
'Authorization' => 'Bearer: '.$token->toString()
]
]);
$provider = new BskyProvider($options, $client, $httpFactory, $httpFactory, $httpFactory);
···
$name = $provider->getName();
if (isset($_GET['login']) && $_GET['login'] === $name) {
+
$auth_url = $provider->getAuthorizationUrl([
+
'client_assertion_type' => 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer',
+
'client_assertion' => $token->toString()
+
]);
header('Location: '.$auth_url);
die(1);
} else if (isset($_GET['code'], $_GET['state'])) {