From 2a25e6ba94486f7a7b7e599d3b38760b04895222 Mon Sep 17 00:00:00 2001 From: Mostafa Rouzbahani Date: Wed, 22 Oct 2025 16:19:52 +0200 Subject: [PATCH] Cast `client_id` to string in JSON response --- src/Server/Registrar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/Registrar.php b/src/Server/Registrar.php index 9328923..85d6571 100644 --- a/src/Server/Registrar.php +++ b/src/Server/Registrar.php @@ -118,7 +118,7 @@ public function oauthRoutes(string $oauthPrefix = 'oauth'): void ); return response()->json([ - 'client_id' => $client->id, + 'client_id' => (string) $client->id, 'grant_types' => $client->grantTypes, 'response_types' => ['code'], 'redirect_uris' => $client->redirectUris,