withCookie(self::make($plainTextToken)); } public static function clearAuthCookies(JsonResponse $response): JsonResponse { return $response ->withCookie(self::forget()) ->withCookie(self::forgetOriginalUserId()); } public static function shouldExposeTokenInResponse(): bool { return (bool) config('auth_cookie.expose_token_in_response', false); } }