8000 Define payload as array, increment version. · jarnovanleeuwen/jwtapi@004b8a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 004b8a6

Browse files
Define payload as array, increment version.
1 parent f1f20bc commit 004b8a6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Client/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class Client
1212
{
13-
const VERSION = '0.2.0';
13+
const VERSION = '0.3.0';
1414
const DEFAULT_HASH_ALGORITHM = 'RS256';
1515
const HEADER_API_KEY = 'API-Key';
1616

src/Client/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ abstract class Request
99
protected $parameters;
1010

1111
/**
12-
* @var string|null
12+
* @var array|null
1313
*/
1414
protected $payload;
1515

@@ -25,7 +25,7 @@ public function getParameters(): ?array
2525
return $this->parameters;
2626
}
2727

28-
public function getPayload(): ?string
28+
public function getPayload(): ?array
2929
{
3030
return $this->payload;
3131
}

src/Server/Exceptions/RequestException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function missingBearerToken(string $message = "No Bearer token fou
3131
return new static($message, static::MISSING_BEARER_TOKEN);
3232
}
3333

34-
public static function unresolvedPublicKey(string $message = "Could not resolve public key"): self
34+
public static function unresolvedPublicKey(string $message = "Invalid API key"): self
3535
{
3636
return new static($message, static::UNRESOLVED_PUBLIC_KEY);
3737
}

0 commit comments

Comments
 (0)
0