Skip to content

Commit

Permalink
Cast auth identifier to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalabarge authored Dec 19, 2022
1 parent cc6d7ca commit 7df4889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resolvers/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(Request $request, $max = null, $rate = null, $durati
public function key(): string
{
if ($user = $this->resolveUser()) {
return sha1($user->getAuthIdentifier());
return sha1((string) $user->getAuthIdentifier());
}

if ($route = $this->request->route()) {
Expand Down

0 comments on commit 7df4889

Please sign in to comment.