From ab33b91b554cee20b6b6c985f8833715ba49b8f2 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sat, 7 Mar 2026 18:58:18 -0600 Subject: [PATCH] testing --- app/Services/JwtService.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/app/Services/JwtService.php b/app/Services/JwtService.php index c09d080..24936cd 100644 --- a/app/Services/JwtService.php +++ b/app/Services/JwtService.php @@ -61,33 +61,6 @@ class JwtService return $user->user_jwt; } - public function make(User $user): string - { - $secret = config('jwt.secret'); - - if (! $secret) { - throw new RuntimeException('JWT secret is not configured.'); - } - - $now = Carbon::now()->timestamp; - $ttl = (int) config('jwt.ttl', 3600); - - $payload = [ - 'iss' => config('jwt.issuer', config('app.name')), - 'sub' => (string) $user->id, - 'iat' => $now, - 'nbf' => $now, - 'exp' => $now + $ttl, - - // App-specific claims - 'character_id' => $user->character_id, - 'character_name' => $user->character_name, - 'character_owner_hash' => $user->character_owner_hash, - ]; - - return JWT::encode($payload, $secret, 'HS256'); - } - public function decode(string $token): object { $secret = config('jwt.secret');